modal

package
v0.0.0-...-958e9d3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Div

type Div struct {
	vecty.Core
	ID                 string                                 `vecty:"prop"`
	Background         background.Value                       `vecty:"prop"`
	Display            func(modal *Div) vecty.ComponentOrHTML `vecty:"prop"`
	TransitionDuration transitionDuration.Value               `vecty:"prop"`
	Extras             []vecty.Applyer                        `vecty:"prop"`
	Dismissible        bool                                   `vecty:"prop"`
	GrabFocus          string                                 `vecty:"prop"`
	Show               bool                                   `vecty:"prop"`
	// contains filtered or unexported fields
}

modal.Div Notes 1) GrabFocus is a component's string ID, if specified upon ShowDiv() it will try and have it grab focus. 2) Dismissible if true will set click and keydown listeners on the background to hide them if ESC is pressed or the background is clicked 3) ID must be globally unique, if not provided one will be created.

func (*Div) Hide

func (div *Div) Hide()

func (*Div) Render

func (div *Div) Render() vecty.ComponentOrHTML

func (*Div) ShowDiv

func (div *Div) ShowDiv()

Jump to

Keyboard shortcuts

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