SelectionMode: PP.Ui.TreeListSelectionMode;
The SelectionMode property determines selection mode.
Default value: PP.Ui.TreeListSelectionMode.MultiSelect.
Use the setSelectionMode(value, fireEvents) method to set the property value, and the getSelectionMode() method to get the property value.
Parameters:
value. PP.Ui.TreeListSelectionMode. Value.
fireEvents. Boolean. Determines whether to generate value change event. Boolean. By default it is set to true.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set selection mode Tree.setSelectionMode(PP.Ui.TreeListSelectionMode.SingleSelect);
After executing the example a single selection mode is set.
See also: