background

package
v0.1.1-0...-1ecdc53 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewState

func NewState(data json.RawMessage, srv web.Server) (modules.State, error)

NewState implements modules.Constructor.

Types

type State

type State struct {
	controls.Dropdown
	// contains filtered or unexported fields
}

State implements api.web.ModuleState

func (*State) Destroy

func (s *State) Destroy()

Destroy calls the dropdown's Destroy.

func (*State) Extract

func (s *State) Extract()

Extract calls the dropdown's Extract.

func (*State) FirstNode

func (s *State) FirstNode() js.Value

FirstNode calls the dropdown's FirstNode

func (*State) InsertInto

func (s *State) InsertInto(parent js.Value, before js.Value)

InsertInto calls the dropdown's InsertInto

func (*State) ItemClicked

func (s *State) ItemClicked(index int) bool

ItemClicked handles a click by switching to the clicked background and returning true.

Jump to

Keyboard shortcuts

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