Skip to content

Instantly share code, notes, and snippets.

@caputomarcos
Created September 9, 2017 20:04
Show Gist options
  • Save caputomarcos/cf39741ccdd920bfad3d853f6747d867 to your computer and use it in GitHub Desktop.
Save caputomarcos/cf39741ccdd920bfad3d853f6747d867 to your computer and use it in GitHub Desktop.
EM: tuiuiu/tuiuiuadmin/static_src/tuiuiuadmin/app
import { initExplorer } from 'tuiuiu-client';
/**
* Admin JS entry point. Add in here code to run once the page is loaded.
*/
document.addEventListener('DOMContentLoaded', () => {
const explorerNode = document.querySelector('[data-explorer-menu]');
const toggleNode = document.querySelector('[data-explorer-start-page]');
if (explorerNode && toggleNode) {
initExplorer(explorerNode, toggleNode);
}
});
@caputomarcos
Copy link
Author

@tuiuiu-io @mathvaleriano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment