Winter Cardinal UI - v0.457.0 / DTreeDataLike
| Name | Type |
|---|---|
NODE |
extends DTreeNode |
DTreeDataLike
• Readonly selection: DTreeDataSelection<NODE>
A selection.
src/main/typescript/wcardinal/ui/d-tree-data.ts:32
▸ add(target, parent?): boolean
Inserts a node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
parent? |
NODE |
a parent node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:112
▸ addAfter(target, sibling): boolean
Inserts the given node after the given sibling.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
sibling |
NODE |
a sibling node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:130
▸ addBefore(target, sibling): boolean
Inserts the given node before the given sibling.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a new node |
sibling |
NODE |
a sibling node |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:121
▸ clear(): boolean
Clears all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:95
▸ collapse(target): boolean
Collapses the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be collapsed |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data.ts:58
▸ collapseAll(): boolean
Collapses all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:72
▸ each(iteratee): void
Iterates over all the nodes. If the iteratee explicitly returns false, stops an iteration.
| Name | Type | Description |
|---|---|---|
iteratee |
DTreeNodeIteratee<NODE> |
an iteratee |
void
src/main/typescript/wcardinal/ui/d-tree-data.ts:138
▸ expand(target): boolean
Expands the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be expanded |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data.ts:50
▸ expandAll(): boolean
Expands all the nodes.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-tree-data.ts:65
▸ isCollapsed(target): boolean
Returns true if the given node is collapsed.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be checked. |
boolean
true if the given node is collapsed
src/main/typescript/wcardinal/ui/d-tree-data.ts:80
▸ isExpanded(target): boolean
Returns true if the given item is expanded.
| Name | Type | Description |
|---|---|---|
target |
NODE |
an item to be checked |
boolean
true if the given item is expanded
src/main/typescript/wcardinal/ui/d-tree-data.ts:88
▸ remove(target): boolean
Removes the given node.
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node to be removed |
boolean
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data.ts:103
▸ toggle(target): boolean
Toggles the given node,
| Name | Type | Description |
|---|---|---|
target |
NODE |
a node |
boolean
Retrn
true if succeeded
src/main/typescript/wcardinal/ui/d-tree-data.ts:42
▸ update(forcibly?): void
| Name | Type |
|---|---|
forcibly? |
boolean |
void