Class Ext.tree.TreeNode
|
Package:
|
Ext.grid
|
|
Defined In:
|
.js
|
|
Class:
|
|
|
Extends:
|
Ext.data.Node
|
@cfg {String} text The text for this node
@cfg {Boolean} expanded true to start the node expanded
@cfg {Boolean} allowDrag False to make this node undraggable if #draggable = true (defaults to true)
@cfg {Boolean} allowDrop False if this node cannot have child nodes dropped on it (defaults to true)
@cfg {Boolean} disabled true to start the node disabled
@cfg {String} icon The path to an icon for the node. The preferred way to do this
is to use the cls or iconCls attributes and add the icon via a CSS background image.
@cfg {String} cls A css class to be added to the node
@cfg {String} iconCls A css class to be added to the nodes icon element for applying css background images
@cfg {String} href URL of the link used for the node (defaults to #)
@cfg {String} hrefTarget target frame for the link
@cfg {String} qtip An Ext QuickTip for the node
@cfg {Boolean} expandable If set to true, the node will always show a plus/minus icon, even when empty
@cfg {String} qtipCfg An Ext QuickTip config for the node (used instead of qtip)
@cfg {Boolean} singleClickExpand True for single click expand on this node
@cfg {Function} uiProvider A UI class to use for this node (defaults to Ext.tree.TreeNodeUI)
@cfg {Boolean} checked True to render a checked checkbox for this node, false to render an unchecked checkbox
(defaults to undefined with no checkbox rendered)
@cfg {Boolean} draggable True to make this node draggable (defaults to false)
@cfg {Boolean} isTarget False to not allow this node to act as a drop target (defaults to true)
@cfg {Boolean} allowChildren False to not allow this node to have child nodes (defaults to true)
配置项
这个类没有配置项。
公告属性
|
属性
|
定义者
|
|
|
this: TreeNodeUI
Read-only. The UI for this node
Read-only. The UI for this node
|
TreeNode
|
公共方法
| |
isExpanded
(
)
: Boolean
Returns true if this node is expanded
Returns true if this node is expanded
|
TreeNode
|
| |
getUI
(
)
: TreeNodeUI
Returns the UI object for this node...
Returns the UI object for this node.
node. Unless otherwise specified in the {@link #uiProvider}, this will be an instance
of {@link Ext.tree.TreeNodeUI}
参数项:
返回:
TreeNodeUI The object which is providing the user interface for this tree
|
TreeNode
|
| |
setText
(
String text
)
Sets the text for this node
Sets the text for this node
|
TreeNode
|
| |
select
(
)
Triggers selection of this node
Triggers selection of this node
|
TreeNode
|
| |
unselect
(
)
Triggers deselection of this node
Triggers deselection of this node
|
TreeNode
|
| |
isSelected
(
)
: Boolean
Returns true if this node is selected
Returns true if this node is selected
|
TreeNode
|
| |
expand
(
Boolean deep,
Boolean anim,
Function callback
)
Expand this node.
expanding this n...
Expand this node.
expanding this node completes (does not wait for deep expand to complete).
Called with 1 parameter, this node.
参数项:
deep : Boolean
(optional) True to expand all children as well
anim : Boolean
(optional) false to cancel the default animation
callback : Function
(optional) A callback to be called when
expanding this node completes (does not wait for deep expand to complete).
Called with 1 parameter, this node.
返回:
|
TreeNode
|
| |
collapse
(
Boolean deep,
Boolean anim
)
|
TreeNode
|
| |
toggle
(
)
Toggles expanded/collapsed state of...
Toggles expanded/collapsed state of the node
|
TreeNode
|
| |
ensureVisible
(
)
Ensures all parent nodes are expand...
Ensures all parent nodes are expanded, and if necessary, scrolls
the node into view.
|
TreeNode
|
| |
expandChildNodes
(
Boolean deep
)
|
TreeNode
|
| |
collapseChildNodes
(
Boolean deep
)
|
TreeNode
|
| |
disable
(
)
|
TreeNode
|
| |
enable
(
)
|
TreeNode
|
公告事件
这个类没公共的事件。