popup

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Harvest

func Harvest() seed.Option

Harvest returns an option that adds all pages to the acting seed. This should normally only be called by app-level runtime packages such as seed/app.

func Hide

func Hide(p Popup) js.Script

Hide hides the provided popup.

func ID

func ID(p Popup) string

func New

func New(options ...seed.Option) seed.Seed

New returns a new popup seed.

func OnHide

func OnHide(f ...client.Script) seed.Option

func OnShow

func OnShow(f ...client.Script) seed.Option

func Show

func Show(p Popup) js.Script

Show shows the provided popup.

func Wrap

func Wrap(p Popup, s ...client.Script) js.Script

Wrap shows the provided popup while the provided script is running.

Types

type PassGoValuesToClient

type PassGoValuesToClient struct {
	clientargs.PassGoValues
}

PassGoValuesToClient can be embedded inside of a popup to enable the passthrough of Go arguments. these arguments must be decoded within the Popup(Manager) Seed method using the methods of PassGoValuesToClient.

type Popup interface {
	Popup() seed.Seed
}

Jump to

Keyboard shortcuts

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