We use cookies to make our website more effective. By using our website you agree to our privacy policy.

Namespace: overrides

overrides

Members

nodeToStateObject.<string, string>

A table of node names that correlate to override commands.
See:
  • stateToNode

stateToNodeObject.<string, string>

A table of overrides an node names that correlate to them.
See:
  • nodeToState

Methods

consume(boundary, overrides){Boundary}

Inserts a DOM nodes at the given boundary to reflect the list of
overrides.
Name Type Description
boundary Boundary
overrides Array.<Override>

harvest(node, until){Array.<Override>}

Creates a list of overrides from the given node and all ancestors until
the given predicate or the editing host.
Name Type Description
node Node
until function

indexOf(overrides, name){number}

Returns the index of an override with the given command or state name in
the given list of overrides.

Returns -1 if override is not found.
Name Type Description
overrides Array.<Override>
name string

joinToSet(){Array.<Override>}

Joins a variable list of overrides-lists into a single unique set.
Type Description
Array.<Override> repeatable

toggle(overrides, name, value){Array.<Override>}

Toggles the value of the override matching the given name from among the
list of overrides.

Returns a copy of overrides that represents the new toggle state/value.
Name Type Description
overrides Array.<Override>
name string
value string | boolean

unique(overrides){Array.<Override>}

Returns a unique set from the given list of overrides.

The last override of any given key (first element of tuple) in the list
will be the value that is included in the resultant set.
Name Type Description
overrides Array.<Override>
comments powered by Disqus