Search
Preparing search index...
The search index is not available
trivial-components
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"TrivialTreeBox"
TrivialTreeBox
Class TrivialTreeBox<E>
Type parameters
E
Hierarchy
TrivialTreeBox
Implements
TrivialComponent
Index
Constructors
constructor
Properties
$component
Wrapper
$tree
config
entries
highlighted
Entry
on
Node
Expansion
State
Changed
on
Selected
Entry
Changed
selected
Entry
Id
Methods
add
Node
create
Entry
Element
destroy
find
Entries
find
Entry
ById
find
Parent
Node
find
Path
ToFirst
Matching
Node
fire
Change
Events
get
Highlighted
Entry
get
Main
Dom
Element
get
Next
Visible
Entry
get
Selected
Entry
highlight
Next
Entry
highlight
Next
Matching
Entry
highlight
Text
Matches
is
Leaf
mark
Selected
Entry
minimally
Scroll
To
node
Depth
remove
Node
render
Children
reveal
Selected
Entry
select
Next
Entry
select
Next
Matching
Entry
set
Children
set
Highlighted
Entry
set
Highlighted
Node
Expanded
set
Node
Expanded
set
Selected
Entry
set
Selected
Entry
ById
update
Children
update
Entries
update
Node
update
Tree
Entry
Elements
Constructors
constructor
new
Trivial
Tree
Box
(
$container
:
JQuery
|
Element
|
string
, options
?:
TrivialTreeBoxConfig
<
E
>
)
:
TrivialTreeBox
Parameters
$container:
JQuery
|
Element
|
string
Default value
options:
TrivialTreeBoxConfig
<
E
>
= {}
Returns
TrivialTreeBox
Properties
Private
$component
Wrapper
$component
Wrapper
:
JQuery
Private
$tree
$tree
:
JQuery
Private
config
config
:
TrivialTreeBoxConfig
<
E
>
Private
entries
entries
:
E
[]
Private
highlighted
Entry
highlighted
Entry
:
E
on
Node
Expansion
State
Changed
on
Node
Expansion
State
Changed
:
TrivialEvent
<
E
>
= new TrivialEvent<E>(this)
on
Selected
Entry
Changed
on
Selected
Entry
Changed
:
TrivialEvent
<
E
>
= new TrivialEvent<E>(this)
Private
selected
Entry
Id
selected
Entry
Id
:
string
Methods
add
Node
add
Node
(
parentNodeId
:
any
, node
:
E
)
:
void
Parameters
parentNodeId:
any
node:
E
Returns
void
Private
create
Entry
Element
create
Entry
Element
(
entry
:
E
, depth
:
number
)
:
JQuery
Parameters
entry:
E
depth:
number
Returns
JQuery
destroy
destroy
(
)
:
void
Returns
void
Private
find
Entries
find
Entries
(
filterFunction
:
function
)
:
E
[]
Parameters
filterFunction:
function
(
node
:
E
)
:
boolean
Parameters
node:
E
Returns
boolean
Returns
E
[]
Private
find
Entry
ById
find
Entry
ById
(
id
:
string
)
:
E
Parameters
id:
string
Returns
E
Private
find
Parent
Node
find
Parent
Node
(
childNode
:
E
)
:
E
Parameters
childNode:
E
Returns
E
Private
find
Path
ToFirst
Matching
Node
find
Path
ToFirst
Matching
Node
(
predicateFunction
:
function
)
:
E
[]
Parameters
predicateFunction:
function
(
node
:
E
, path
:
any
[]
)
:
boolean
Parameters
node:
E
path:
any
[]
Returns
boolean
Returns
E
[]
Private
fire
Change
Events
fire
Change
Events
(
entry
:
E
, originalEvent
:
Event
)
:
void
Parameters
entry:
E
originalEvent:
Event
Returns
void
get
Highlighted
Entry
get
Highlighted
Entry
(
)
:
E
Returns
E
get
Main
Dom
Element
get
Main
Dom
Element
(
)
:
Element
Returns
Element
Private
get
Next
Visible
Entry
get
Next
Visible
Entry
(
currentEntry
:
E
, direction
:
HighlightDirection
, onlyEntriesWithTextMatches
?:
boolean
)
:
E
Parameters
currentEntry:
E
direction:
HighlightDirection
Default value
onlyEntriesWithTextMatches:
boolean
= false
Returns
E
get
Selected
Entry
get
Selected
Entry
(
)
:
E
Returns
E
highlight
Next
Entry
highlight
Next
Entry
(
direction
:
HighlightDirection
)
:
void
Parameters
direction:
HighlightDirection
Returns
void
highlight
Next
Matching
Entry
highlight
Next
Matching
Entry
(
direction
:
HighlightDirection
)
:
void
Parameters
direction:
HighlightDirection
Returns
void
highlight
Text
Matches
highlight
Text
Matches
(
searchString
:
string
)
:
void
Parameters
searchString:
string
Returns
void
Private
is
Leaf
is
Leaf
(
entry
:
E
)
:
boolean
Parameters
entry:
E
Returns
boolean
Private
mark
Selected
Entry
mark
Selected
Entry
(
entry
:
E
)
:
void
Parameters
entry:
E
Returns
void
Private
minimally
Scroll
To
minimally
Scroll
To
(
$entryWrapper
:
JQuery
)
:
void
Parameters
$entryWrapper:
JQuery
Returns
void
Private
node
Depth
node
Depth
(
node
:
E
)
:
number
Parameters
node:
E
Returns
number
remove
Node
remove
Node
(
nodeId
:
string
)
:
void
Parameters
nodeId:
string
Returns
void
Private
render
Children
render
Children
(
node
:
E
)
:
void
Parameters
node:
E
Returns
void
reveal
Selected
Entry
reveal
Selected
Entry
(
animate
?:
boolean
)
:
void
Parameters
Default value
animate:
boolean
= false
Returns
void
select
Next
Entry
select
Next
Entry
(
direction
:
HighlightDirection
, originalEvent
?:
Event
)
:
void
Parameters
direction:
HighlightDirection
Optional
originalEvent:
Event
Returns
void
select
Next
Matching
Entry
select
Next
Matching
Entry
(
direction
:
HighlightDirection
)
:
void
Parameters
direction:
HighlightDirection
Returns
void
Private
set
Children
set
Children
(
node
:
E
, children
:
E
[]
)
:
void
Parameters
node:
E
children:
E
[]
Returns
void
set
Highlighted
Entry
set
Highlighted
Entry
(
entry
:
E
)
:
void
Parameters
entry:
E
Returns
void
set
Highlighted
Node
Expanded
set
Highlighted
Node
Expanded
(
expanded
:
boolean
)
:
boolean
Parameters
expanded:
boolean
Returns
boolean
Private
set
Node
Expanded
set
Node
Expanded
(
node
:
E
, expanded
:
boolean
, animate
:
boolean
)
:
void
Parameters
node:
E
expanded:
boolean
animate:
boolean
Returns
void
set
Selected
Entry
set
Selected
Entry
(
entry
:
E
, originalEvent
?:
Event
)
:
void
Parameters
entry:
E
Optional
originalEvent:
Event
Returns
void
set
Selected
Entry
ById
set
Selected
Entry
ById
(
nodeId
:
any
)
:
void
Parameters
nodeId:
any
Returns
void
update
Children
update
Children
(
parentNodeId
:
string
, children
:
E
[]
)
:
void
Parameters
parentNodeId:
string
children:
E
[]
Returns
void
update
Entries
update
Entries
(
newEntries
:
E
[]
)
:
void
Parameters
newEntries:
E
[]
Returns
void
update
Node
update
Node
(
node
:
E
)
:
void
Parameters
node:
E
Returns
void
Private
update
Tree
Entry
Elements
update
Tree
Entry
Elements
(
)
:
void
Returns
void
Globals
"
Trivial
Calendar
Box"
"
Trivial
Combo
Box"
"
Trivial
Core"
"
Trivial
Date
Suggestion
Engine"
"
Trivial
Date
Time
Field"
"
Trivial
Event"
"
Trivial
List
Box"
"
Trivial
Tag
Combo
Box"
"
Trivial
Time
Suggestion
Engine"
"
Trivial
Tree"
"
Trivial
Tree
Box"
"
Trivial
Tree
Combo
Box"
"
Trivial
Unit
Box"
"index"
"trivial-
highlight"
Trivial
Tree
Box
constructor
$component
Wrapper
$tree
config
entries
highlighted
Entry
on
Node
Expansion
State
Changed
on
Selected
Entry
Changed
selected
Entry
Id
add
Node
create
Entry
Element
destroy
find
Entries
find
Entry
ById
find
Parent
Node
find
Path
ToFirst
Matching
Node
fire
Change
Events
get
Highlighted
Entry
get
Main
Dom
Element
get
Next
Visible
Entry
get
Selected
Entry
highlight
Next
Entry
highlight
Next
Matching
Entry
highlight
Text
Matches
is
Leaf
mark
Selected
Entry
minimally
Scroll
To
node
Depth
remove
Node
render
Children
reveal
Selected
Entry
select
Next
Entry
select
Next
Matching
Entry
set
Children
set
Highlighted
Entry
set
Highlighted
Node
Expanded
set
Node
Expanded
set
Selected
Entry
set
Selected
Entry
ById
update
Children
update
Entries
update
Node
update
Tree
Entry
Elements
Trivial
Tree
Box
Config
Generated using
TypeDoc