itemset

Updates itemsets.

Source:

Methods

(static) createInput(attributes, translations, value) → {Element}

Source:

Creates an input HTML element

Parameters:
Name Type Description
attributes Array.<object>

attributes to add to input

translations Array.<object>

translation to add

value string

option value

Returns:

label element (wrapper)

Type
Element

(static) createOption(label, value) → {Element}

Source:

Creates a HTML option element

Parameters:
Name Type Description
label string

option label

value string

option value

Returns:

created option

Type
Element

(static) createOptionTranslation(translation, value) → {Element}

Source:

Creates an option translation element

Parameters:
Name Type Description
translation object

translation object

Properties
Name Type Attributes Description
type string <optional>

type of element to create, defaults to span

text string <optional>

translation text

value string

option value

Returns:

created element

Type
Element

(static) getNodeFromItem(expr, context) → {Element|null}

Source:
Parameters:
Name Type Description
expr string

XPath expression

context string

evalation context path

Returns:

found nodes

Type
Element | null

(static) getNodesFromItem(expr, context, single) → {Array.<Element>}

Source:

Minimal XPath evaluation helper that queries from a single item context.

Parameters:
Name Type Description
expr string

The XPath expression

context string

context path

single boolean

whether to only return a single (first) node

Returns:

found nodes

Type
Array.<Element>

(static) isStaticItemsetFromSecondaryInstance(expr) → {boolean}

Source:

This function tries to determine whether an XPath expression for a nodeset from an external instance is static. Hopefully in the future it can do this properly, but for now it considers any expression with a non-numeric (position) predicate to be dynamic. This function relies on external instances themselves to be static.

Parameters:
Name Type Description
expr string

XPath expression to analyze

Returns:

Whether expression contains a predicate

Type
boolean

(static) update(updatedopt)

Source:
Parameters:
Name Type Attributes Description
updated UpdatedDataNodes <optional>

The object containing info on updated data nodes.