Search
Preparing search index...
The search index is not available
Builder plugin API reference
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Modules
"Tree"
Tree
Class Tree<T, T>
Type parameters
T
:
TreeNode
T
:
UIComponent
Hierarchy
VerticalLayout
Tree
Implements
UIBuildable
<
VerticalLayoutDef
>
UIBuildable
<
TreeDef
<
T
>
>
Index
Constructors
constructor
Properties
fields
Methods
add
Child
add
Class
apply
Layout
Cell
Css
build
Init
css
get
Elem
get
Last
Selected
get
Value
get
Wrapped
Control
off
on
remove
All
Children
remove
Child
remove
Class
select
First
select
Item
Li
set
Enabled
set
Spacing
set
Title
set
Tooltip
set
Value
set
Visible
trigger
wrap
Control
Constructors
constructor
new
Tree
(
fluid
?:
boolean
|
string
, rowStyleClass
?:
string
[]
)
:
Tree
Parameters
Optional
fluid:
boolean
|
string
Optional
rowStyleClass:
string
[]
Returns
Tree
Properties
fields
fields
:
object
Methods
add
Child
add
Child
(
child
:
T
)
:
this
Parameters
child:
T
Returns
this
add
Class
add
Class
(
cls
:
string
)
:
this
Parameters
cls:
string
Returns
this
apply
Layout
Cell
Css
apply
Layout
Cell
Css
(
idx
:
number
, css
:
object
)
:
this
Parameters
idx:
number
css:
object
[
key:
string
]:
any
Returns
this
build
Init
build
Init
(
data
:
TreeDef
<
T
>
, fields
:
UIComponentList
)
:
void
Parameters
data:
TreeDef
<
T
>
fields:
UIComponentList
Returns
void
css
css
(
css
:
object
)
:
this
Parameters
css:
object
[
key:
string
]:
any
Returns
this
get
Elem
get
Elem
(
)
:
JQuery
Returns
JQuery
get
Last
Selected
get
Last
Selected
(
)
:
T
|
null
Returns
T
|
null
get
Value
get
Value
(
)
:
T
[]
Returns
T
[]
get
Wrapped
Control
get
Wrapped
Control
(
)
:
object
|
null
Returns
object
|
null
off
off
(
event
:
string
, callback
:
function
)
:
this
Parameters
event:
string
callback:
function
(
e
?:
JQueryEventObject
)
:
void
Parameters
Optional
e:
JQueryEventObject
Returns
void
Returns
this
on
on
(
event
:
string
, callback
:
function
)
:
this
Parameters
event:
string
callback:
function
(
e
?:
JQueryEventObject
)
:
void
Parameters
Optional
e:
JQueryEventObject
Returns
void
Returns
this
remove
All
Children
remove
All
Children
(
)
:
this
Returns
this
remove
Child
remove
Child
(
child
:
T
)
:
this
Parameters
child:
T
Returns
this
remove
Class
remove
Class
(
cls
:
string
)
:
this
Parameters
cls:
string
Returns
this
select
First
select
First
(
)
:
void
Returns
void
select
Item
Li
select
Item
Li
(
li
:
TreeListItem
<
T
>
)
:
void
Parameters
li:
TreeListItem
<
T
>
Returns
void
set
Enabled
set
Enabled
(
enabled
:
boolean
)
:
void
Parameters
enabled:
boolean
Returns
void
set
Spacing
set
Spacing
(
spacing
:
number
)
:
this
Set vertical spacing
Parameters
spacing:
number
Returns
this
set
Title
set
Title
(
title
:
string
)
:
this
Parameters
title:
string
Returns
this
set
Tooltip
set
Tooltip
(
value
:
string
|
boolean
, placement
?:
undefined
|
string
, trigger
?:
undefined
|
string
)
:
void
Parameters
value:
string
|
boolean
Optional
placement:
undefined
|
string
Optional
trigger:
undefined
|
string
Returns
void
set
Value
set
Value
(
items
:
T
[]
)
:
void
Parameters
items:
T
[]
Returns
void
set
Visible
set
Visible
(
visible
:
boolean
)
:
this
Parameters
visible:
boolean
Returns
this
trigger
trigger
(
event
:
string
, extraParameters
?:
any
)
:
this
Parameters
event:
string
Optional
extraParameters:
any
Returns
this
Static
wrap
Control
wrap
Control
(
control
:
object
)
:
UIComponent
Wrap control instance in UIComponent
Parameters
control:
object
Returns
UIComponent
Modules
"
Tree"
Tree
constructor
fields
add
Child
add
Class
apply
Layout
Cell
Css
build
Init
css
get
Elem
get
Last
Selected
get
Value
get
Wrapped
Control
off
on
remove
All
Children
remove
Child
remove
Class
select
First
select
Item
Li
set
Enabled
set
Spacing
set
Title
set
Tooltip
set
Value
set
Visible
trigger
wrap
Control
Tree
Def
Tree
Node
Add
Func
Item
Type
Select
Func
Set vertical spacing