fork on github
Teleopti logo
-

Tree type one - function picker

5.1

Tree 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 '✓'.

Show Hide JavaScript

         $scope.treeOption = {
          NodeDisplayName: "label",
          NodeChildrenName: "nodes",
          NodeSelectedMark: "selected"
          };

      
-

Show Hide markup
                <tree-data-one ng-model="treeDemos1" option="treeOption"></tree-data-one>
              

Tree type two - organization picker

5.2

Tree 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.

Show Hide JavaScript

         $scope.treeOption2 = {
          NodeDisplayName: "label",
          NodeChildrenName: "nodes",
          NodeSelectedMark: "selected",
          NodeSemiSelected: "semiSelected"
          };

      
-

Show Hide markup
                <tree-data-two ng-model="treeDemos2" option="treeOption2"></tree-data-two>
              

Tree type two - organization picker(unique root)

5.3

If the tree data has several first level parents (as root in this description), selection is only allowed for one of them at a time.

Show Hide JavaScript

         $scope.treeOption3 = {
          NodeDisplayName: "label",
          NodeChildrenName: "nodes",
          NodeSelectedMark: "selected",
          NodeSemiSelected: "semiSelected",
          RootSelectUnique: true
          };

      
-

Show Hide markup
                <tree-data-two ng-model="treeDemos3" option="treeOption3"></tree-data-two>
              

Tree Picker Filter

5.4

Tree 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.

Show Hide JavaScript

         $scope.treeOption4 = {
          NodeDisplayName: "label",
          NodeChildrenName: "nodes",
          NodeSelectedMark: "selected",
          NodeSemiSelected: "semiSelected",
          DisplayTreeFilter: true
          };

      
-

Show Hide markup
                <tree-data-two ng-model="treeDemos4" option="treeOption4"></tree-data-two>