what

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type What

type What uint8
const (

	// Commands not associated with an Element
	Update   What // Used for update scheduling
	Reload        // Tells browser to reload the current URL
	Redirect      // Tells browser to load another URL
	Alert         // Display (if using Bootstrap) an alert message
	Order         // Re-order a set of elements
	// Element manipulation
	Inner   // Set the elements inner HTML
	Delete  // Delete the element
	Replace // Replace the element with new HTML
	Remove  // Remove child element
	Insert  // Insert child element
	Append  // Append child element
	SAttr   // Set element attribute
	RAttr   // Remove element attribute
	SClass  // Set element class
	RClass  // Remove element class
	Value   // Set element value
	// Element input events
	Input
	Click
	// Testing
	Hook // Calls event handler synchronously
)

func Parse

func Parse(s string) What

func (What) IsCommand added in v0.31.0

func (w What) IsCommand() bool

func (What) IsValid added in v0.31.0

func (w What) IsValid() bool

func (What) String

func (i What) String() string

Jump to

Keyboard shortcuts

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