Documentation ¶
Index ¶
Constants ¶
View Source
const (
MCW_MODULE = "material-components-web/dist/material-components-web"
)
Variables ¶
View Source
var (
Dom jsdom.JSDOM
)
Functions ¶
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 ¶
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.
func LoadMDCModule ¶
func LoadMDCModule() (err error)
func ShimHyperform ¶
func ShimHyperform() (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.