RasterTreeItem.setEnabled( isEnabled )

Specifies if an item is enabled or disabled. When an item is in disabled mode, the item will generate "click" events, but will not be selected. If the item has children, the expanded/collapse toggle button will still works. However setCollapsable() can be used to prevent the user from collapsing an item.

Parameters

Name Type   Description
isEnabled boolean True shows command normal, false greys out the icon & text.

Returns

Type Description
object The tree item object. This allow for chaining multiple setter methods in one single statement.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López