const ( MCW_MODULE = "material-components-web/dist/material-components-web" )
func EmulateDOM ¶
EmulateDOM sets up a fake DOM in Node for "gopherjs test" We emulate a browser dom since tests run in Node, and MDC components need a dom element to attach to. This is not needed when running in a browser.
func InitMenu() (err error)
For some reason the material-components-web node module does not come with MDCMenu, it only comes with an undocumented MDCSimpleMenu.
This section is empty.