RepeaterNode

RepeaterNode #

@furo/furo-data v2.18.0
import '@furo/data/src/lib/RepeaterNode.js';
exports RepeaterNode js
superclass EventTreeNode


internal events #

  • before-repeated-field-changed, fired before new data is injected
  • this-metas-changed, when the metas of a field changed
  • repeat-became-valid, fired when all sub items are valid, after one was invalid before
  • repeat-became-invalid, fired when one sub item switches to a invalid state
  • repeated-fields-changed, fired when this or any child repeaters was changed (new data, add, remove)
  • this-repeated-field-changed, fired when this repeater was changed (new data, add, remove)
  • repeated-fields-all-removed fired when all nodes of a repeater was deleted
  • this-repeated-field-removed, fired whe a node of this repeater was deleted
  • this-node-field-deleted, fired when this node was deleted
  • *node-field-deleted, fired when a child node was deleted
  • repeated-fields-added, fired when a node on this or any child repeater was added
  • this-repeated-field-added, fired when a node on this repeater was added

Attributes and Properties #

_value #

default: tmp



__specdefinitions #



_isRepeater #

default: true



repeats #

default: []



_spec #

default: spec



_name #

default: fieldName



clearListOnNewData #

default: false

Set this to true to clear the list on new data instead updating the current list.

_pristine #

default: true



_isValid #

default: true



_validationDisabled #



__initialValue #



Methods #

moveNode #

moveNode(oldIndex *newIndex* ) ⟹ void

  • oldIndex
  • newIndex

reinit #

reinit() ⟹ void

resets the field to the initial _values from the spec



reset #

reset() ⟹ void

removes all children



removeAllChildren #

removeAllChildren() ⟹ void

deletes all repeated fields on this node



_hasAncestorOfType #

_hasAncestorOfType() ⟹ void

infinite recursive element protection we can return false here, because a repeater node is not created automatically



deleteNode #

deleteNode() ⟹ void



__updateMetaAndConstraints #

__updateMetaAndConstraints(metaAndConstraints `` ) ⟹ void

  • metaAndConstraints

deleteChild #

deleteChild(index `` ) ⟹ void

Deletes a repeated item by index

  • index

_addSilent #

_addSilent() ⟹ void



_setInvalid #

_setInvalid(error `` ) ⟹ void

  • error

_getPath #

_getPath(deeppath `` ) ⟹ void

  • deeppath

_setState #

_setState(state `` ) ⟹ void

  • state

add #

add(data `` ) ⟹ void

  • data