clicksToEdit([clicks])
Class: Tree.
Description:
Gets or sets how many consecutive clicks are required to start editing an item's text. The Tree component is not editable by default, therefore editing should be enabled by UIComponent > editable method for these clicks have effect. See example below.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Amount of rapid clicks required (1 or 2). Default is 2. If omitted, the current value is returned. |
Returns:
When called without parameters, current value is returned; otherwise returns this Tree component for method chaining.
Type: number | Tree
Examples:
Enables editing, then sets 1 click to start editing:
tree.editable(true).clicksToEdit(1);
