Constructor: TreeViewOfFilteredRuleResult

OpenAjax.a11y.formatters.TreeViewOfFilteredRuleResult

new TreeViewOfFilteredRuleResult(filtered_rule_result)

Creates a list of node results formatted for display in a tree view

Parameters:
Name Type Description
filtered_rule_result FilteredRuleResult Filtered rule result object
Properties:
Name Type Description
filtered_rule_result FilteredRuleResult Filtered rule result object reference
node_result_items Array List of node result items optimized for tree or list view rendering
Source:
  • scripts/formatter_tree_view.js, line 541

Methods

<static> getOpenNodeResults() → {Array}

Returns an array of all the node result items, including the items in the children property of items with open property set to true

Source:
  • scripts/formatter_tree_view.js, line 720
Returns:
Array of node result items optimized for a tree view
Type
Array

<static> setOpenState(flag)

Sets open state on all container items in the list Used for expanding or collapsing all leafs in a tree

Parameters:
Name Type Description
flag Boolean If true all container elements will be set to open, otherwise containers element set to close
Source:
  • scripts/formatter_tree_view.js, line 684

<static> sortListOfNodeResults(sort_property, order) → {Array}

Sorts the list of node result items based on item property values

Parameters:
Name Type Description
sort_property String Name of property to sort, property names include: 'result', 'element', 'position'
order Number If 1 sort ascending, else sort descending
Source:
  • scripts/formatter_tree_view.js, line 759
Returns:
Array of objects optimized for display as a tree
Type
Array