Tree
5Tree type one - function picker
5.1Tree type one is a special tree picker, it allows parent nodes to be selected independently from their children. This tree type structure is used to show relations between different items. Selected items are marked with a full checkmark '✓'.
$scope.treeOption = {
NodeDisplayName: "label",
NodeChildrenName: "nodes",
NodeSelectedMark: "selected"
};
<tree-data-one ng-model="treeDemos1" option="treeOption"></tree-data-one>
Tree type two - organization picker
5.2Tree type two is a general tree structure using parent-child relation. This tree type structure is used to show relations between different items. Selected items are marked with a full checkmark '✓' or semi-checkmark '-'. If parent item contains one child item it is marked as selected as well as its parent with semi-checkmark. if all child items are selected, the parent item will mark with full checkmark.
$scope.treeOption2 = {
NodeDisplayName: "label",
NodeChildrenName: "nodes",
NodeSelectedMark: "selected",
NodeSemiSelected: "semiSelected"
};
<tree-data-two ng-model="treeDemos2" option="treeOption2"></tree-data-two>
Tree type two - organization picker(unique root)
5.3If the tree data has several first level parents (as root in this description), selection is only allowed for one of them at a time.
$scope.treeOption3 = {
NodeDisplayName: "label",
NodeChildrenName: "nodes",
NodeSelectedMark: "selected",
NodeSemiSelected: "semiSelected",
RootSelectUnique: true
};
<tree-data-two ng-model="treeDemos3" option="treeOption3"></tree-data-two>
Tree Picker Filter
5.4Tree picker filter is a general filter for all types of tree picker and it uses for filter site/team within a organization by input keyword.
$scope.treeOption4 = {
NodeDisplayName: "label",
NodeChildrenName: "nodes",
NodeSelectedMark: "selected",
NodeSemiSelected: "semiSelected",
DisplayTreeFilter: true
};
<tree-data-two ng-model="treeDemos4" option="treeOption4"></tree-data-two>