mdctest

package
v0.0.0-...-7d1b9b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: MIT, MIT Imports: 3 Imported by: 0

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

func EmulateDOM() (dom jsdom.JSDOM, err error)

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 HTML

func HTML(t string) string

func Init

func Init() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL