drawer

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scrim

func Scrim() app.UI

Types

type Drawer

type Drawer struct {
	app.Compo
	base.JsUtil
	Id   string
	List *list.List
	Open bool
	Type Type
	// contains filtered or unexported fields
}

func (*Drawer) ActionClose

func (d *Drawer) ActionClose(ctx app.Context)

func (*Drawer) ActionOpen

func (d *Drawer) ActionOpen(ctx app.Context)

func (*Drawer) ActionToggle

func (d *Drawer) ActionToggle(ctx app.Context)

func (*Drawer) OnMount

func (d *Drawer) OnMount(ctx app.Context)

func (*Drawer) Render

func (d *Drawer) Render() app.UI

type EventType

type EventType string
const Close EventType = "MDCDrawer:close"
const Closed EventType = "MDCDrawer:closed"
const Open EventType = "MDCDrawer:open"
const Opened EventType = "MDCDrawer:opened"
const Toggle EventType = "MDCDrawer:toggle"

type Type

type Type int
const (
	Standard Type = iota
	Modal
	Dismissible
	Bottom
)

Jump to

Keyboard shortcuts

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