furo-message-container-handler

furo-message-container-handler #

@furo/data v2.18.0
import '@furo/data/src/furo-message-container-handler.js';
exports FuroMessageContainerHandler js
exports <furo-message-container-handler> custom-element-definition
superclass LitElement

summary furo.MessageContainer handler

furo-message-container-handler will update the ‘value states’ of all fields of your data object from the injected furo.MessageContainer message.

Attributes and Properties #

Events #

success #

at-successvoid

Fired when success field was set on the received furo.MessageContainer.

no-success #

at-no-successvoid

Fired when the success field on the furo.MessageContainer was not set or is set to false.

has-confirmation #

at-has-confirmation[]furo.ConfirmationMessage

Fired when the message container contains any confirmation field, with list with all furo.ConfirmationMessage.

has-errors #

at-has-errors[]furo.MCFieldViolation

Fired when the message container contains any error field, with list with all error fields.

has-success #

at-has-success[]furo.MCFieldViolation

Fired when the message container contains any success field, with list with all success fields.

has-warnings #

at-has-warnings[]furo.MCFieldViolation

Fired when the message container contains any warning field, with list with all warning fields.

has-infos #

at-has-infos[]furo.MCFieldViolation

Fired when the message container contains any info field, with list with all info fields.

Methods #

injectRaw #

injectRaw(messageContainer JSON ) ⟹ void

JSON fn-inject-raw

This will set the corresponding value-states on the sibling nodes of the bounded furo.MessageContainer field.

  • messageContainer with furo.MessageContainer signature

_updateCountersAndFireEvents #

_updateCountersAndFireEvents() ⟹ void

*fn–update-counters-and-fire-events



_applyValueState #

_applyValueState() ⟹ void

*fn–apply-value-state



_clearValueStates #

_clearValueStates() ⟹ void

*fn–clear-value-states



bindMessageContainer #

bindMessageContainer(fieldNode FieldNode ) ⟹ void

FieldNode fn-bind-message-container

bindMc Bind a furo.MessageContainer fieldnode.

The updates from the injected raw messagecontainer are applied to the siblings of the bounded node.

  • fieldNode Messagecontainer fieldnode

bindRootNode #

bindRootNode(fieldNode FieldNode ) ⟹ void

FieldNode fn-bind-root-node

bindMc Bind a furo.MessageContainer fieldnode.

The updates from the injected raw messagecontainer are applied to the siblings of the bounded node.

  • fieldNode Messagecontainer fieldnode