menu

package
Version: v0.0.0-...-570bcb6 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M

type M struct {
	*menu.M
	*base.MDC
	vecty.Core
	Root vecty.MarkupOrChild

	// Open is the visible state of the menu component.
	Open bool `js:"open"`

	// QuickOpen controls whether the menu should open and close without
	// animation. False uses animation, true does not.
	QuickOpen bool `js:"quickOpen"`

	// List is a HTMLUListElement containing the menu's items.
	List vecty.ComponentOrHTML

	// Set AnchorElement to embed the menu component inside an HTMLElement from
	// which the element will be anchored.
	AnchorElement vecty.ComponentOrHTML

	// Define OnSelect to handle "MDCMenu:selected" events. item is the
	// menu item that was selected.
	OnSelect func(index int, item vecty.ComponentOrHTML, e *vecty.Event)

	// Define OnCancel to handle "MDCMenu:selected" events. item is the
	// menu item that was selected.
	OnCancel func(e *vecty.Event)
	// contains filtered or unexported fields
}

M is a vecty-material menu component.

func (*M) Apply

func (c *M) Apply(h *vecty.HTML)

func (*M) Render

func (c *M) Render() vecty.ComponentOrHTML

Render implements the vecty.Component interface.

Source Files

Jump to

Keyboard shortcuts

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