Emit events for open/close drawer actions
See original GitHub issueI noticed that the event pattern is implemented in MDCComponent
.
Is there a plan for components to emit events?
For example,
MDCTemporaryDrawer
could emit an open/close event - this would allow quick integrations without implementing the foundation adapters, and wiring up event handlers is certainly easier.
I was implementing mdc bindings for Knockout - and I have to subclass the MDCTemporaryDrawerFoundation
just to get access to open
/close
in a non-hackish way.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
DrawerActions reference - React Navigation
DrawerActions is an object containing methods for generating actions specific to drawer-based ... The openDrawer action can be used to open the drawer...
Read more >v-navigation-drawer API - Vuetify
name type default
#absolute boolean false
#app boolean false
#bottom boolean false
Read more >Learn Angular Component Design Patterns - inDepth.dev
Dynamically update the left CSS property to open/close the drawer. ... takes a couple of inputs and emits the drawerClosed() event.
Read more >Navigation drawer - Material Design
The navigation region holds navigational components and elements. It helps users navigate between destinations and initiate key actions. Margins greater than ...
Read more >Vuex state vs event - Vue Forum
The better news is you can now open/close this drawer from anywhere because you can access your vuex actions from anywhere. Here's a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To be clear, the work I believe needs to be done here includes:
notifyOpen() => void
method to the drawer’s adapter API, which is called when a drawer is opennotifyClose() => void
method to the drawer’s adapter API, which is called when a drawer is closed. Note that this may need to take touch dragging into account.MDCTemporaryDrawer:open
event as itsnotifyOpen()
adapter implementationMDCTemporaryDrawer:close
event as itsnotifyClose()
adapter implementation@traviskaufman Sorry about this. I was really busy recently. I’ll start it today.