mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 15:27:43 +01:00
16 lines
431 B
JavaScript
16 lines
431 B
JavaScript
|
import '@material/mwc-button';
|
||
|
import '@material/mwc-drawer';
|
||
|
import '@material/mwc-icon-button';
|
||
|
import '@material/mwc-list';
|
||
|
import '@material/mwc-menu';
|
||
|
import './WebComponents/TopAppBar';
|
||
|
import './WebComponents/Drawer';
|
||
|
|
||
|
const drawer = document.getElementsByTagName('material-drawer')[0];
|
||
|
if (drawer) {
|
||
|
const container = $(drawer).parent();
|
||
|
container.on('MDCTopAppBar:nav', () => {
|
||
|
drawer.open = !drawer.open;
|
||
|
});
|
||
|
}
|