Documentation
¶
Overview ¶
Package what defines commands used by the JaWS wire protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type What ¶
type What uint8
What identifies a JaWS wire protocol command or event.
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 Call // Call JavaScript function Set // Set JavaScript variable (JSON path + tab char + JSON data) // Element manipulation Inner // Set the elements inner HTML Delete // Delete the element Replace // Replace the element with new HTML Remove // Remove child element (Data identifies child; Jid identifies parent) 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 ContextMenu // Testing Hook // Calls event handler synchronously )
func Parse ¶
Parse returns the What named by s.
An empty string is treated as Update. Unknown strings return the invalid zero value.
Click to show internal directories.
Click to hide internal directories.