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) Render ¶
func (div *Div) Render() vecty.ComponentOrHTML
Click to show internal directories.
Click to hide internal directories.