Class: ButtonSend

ButtonSend()

new ButtonSend()

NB: Attributes not available here - use connectedCallback to reference
Source:

Members

_msg

The output msg @type {object}
Source:

_msg

The output msg @type {object}
Source:

_ui

Standard _ui object to include in msgs
Source:

_ui

Standard _ui object to include in msgs
Source:

componentVersion

Component version
Source:

componentVersion

Component version
Source:

payload :any

The payload to include in the output
Type:
  • any
Source:

payload :any

The payload to include in the output
Type:
  • any
Source:

topic :string|undefined

The topic to include in the output
Type:
  • string | undefined
Source:

topic :string|undefined

The topic to include in the output
Type:
  • string | undefined
Source:

(static) observedAttributes

Makes HTML attribute change watched
Source:

(static) observedAttributes

Makes HTML attribute change watched
Source:

Methods

attributeChangedCallback(attrib, oldVal, newVal)

Runs when an observed attribute changes - Note: values are always strings
Parameters:
Name Type Description
attrib string Name of watched attribute that has changed
oldVal string The previous attribute value
newVal string The new attribute value
Source:

attributeChangedCallback(attrib, oldVal, newVal)

Runs when an observed attribute changes - Note: values are always strings
Parameters:
Name Type Description
attrib string Name of watched attribute that has changed
oldVal string The previous attribute value
newVal string The new attribute value
Source:

connectedCallback()

Runs when an instance is added to the DOM
Source:

connectedCallback()

Runs when an instance is added to the DOM
Source:

disconnectedCallback()

Runs when an instance is removed from the DOM
Source:

disconnectedCallback()

Runs when an instance is removed from the DOM
Source:

handleClick(evt)

fn to run when the button is clicked
Parameters:
Name Type Description
evt PointerEvent | MouseEvent The event object
Source:

handleClick(evt)

fn to run when the button is clicked
Parameters:
Name Type Description
evt PointerEvent | MouseEvent The event object
Source:

ButtonSend()

new ButtonSend()

NB: Attributes not available here - use connectedCallback to reference
Source:

Members

_msg

The output msg @type {object}
Source:

_msg

The output msg @type {object}
Source:

_ui

Standard _ui object to include in msgs
Source:

_ui

Standard _ui object to include in msgs
Source:

componentVersion

Component version
Source:

componentVersion

Component version
Source:

payload :any

The payload to include in the output
Type:
  • any
Source:

payload :any

The payload to include in the output
Type:
  • any
Source:

topic :string|undefined

The topic to include in the output
Type:
  • string | undefined
Source:

topic :string|undefined

The topic to include in the output
Type:
  • string | undefined
Source:

(static) observedAttributes

Makes HTML attribute change watched
Source:

(static) observedAttributes

Makes HTML attribute change watched
Source:

Methods

attributeChangedCallback(attrib, oldVal, newVal)

Runs when an observed attribute changes - Note: values are always strings
Parameters:
Name Type Description
attrib string Name of watched attribute that has changed
oldVal string The previous attribute value
newVal string The new attribute value
Source:

attributeChangedCallback(attrib, oldVal, newVal)

Runs when an observed attribute changes - Note: values are always strings
Parameters:
Name Type Description
attrib string Name of watched attribute that has changed
oldVal string The previous attribute value
newVal string The new attribute value
Source:

connectedCallback()

Runs when an instance is added to the DOM
Source:

connectedCallback()

Runs when an instance is added to the DOM
Source:

disconnectedCallback()

Runs when an instance is removed from the DOM
Source:

disconnectedCallback()

Runs when an instance is removed from the DOM
Source:

handleClick(evt)

fn to run when the button is clicked
Parameters:
Name Type Description
evt PointerEvent | MouseEvent The event object
Source:

handleClick(evt)

fn to run when the button is clicked
Parameters:
Name Type Description
evt PointerEvent | MouseEvent The event object
Source: