ReactorTreeLeaf<T>
Extends
TreeEntity<T,this> &IBaseReactorTree
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends ReactorTreeListener | ReactorTreeListener |
Constructors
Constructor
new ReactorTreeLeaf<T>(options): ReactorTreeLeaf<T>;
Parameters
| Parameter | Type |
|---|---|
options | ReactorTreeOptions |
Returns
ReactorTreeLeaf<T>
Overrides
PatchTree(TreeEntity)<T>.constructor
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
attached | public | boolean | The entity is part of a rendered tree | PatchTree(TreeEntity).attached |
currentSearch? | public | SearchEvent | The current search value | PatchTree(TreeEntity).currentSearch |
options | public | ReactorTreeOptions | - | - |
visible | public | boolean | The entity itself is visible | PatchTree(TreeEntity).visible |
Methods
addPropGenerator()
addPropGenerator(transformer): () => any;
Parameters
| Parameter | Type |
|---|---|
transformer | ReactorTreePropsTransformer |
Returns
() => any
Inherited from
PatchTree(TreeEntity).addPropGenerator
getProps()
getProps(event): ReactorTreeProps;
Parameters
| Parameter | Type |
|---|---|
event | CoreTreeWidgetProps |
Returns
Inherited from
PatchTree(TreeEntity).getProps
getSortKey()
getSortKey(): string;
Returns
string
Inherited from
PatchTree(TreeEntity).getSortKey
match()
match(event): SearchEventMatch;
Parameters
| Parameter | Type |
|---|---|
event | SearchEvent |
Returns
SearchEventMatch
Overrides
PatchTree(TreeEntity).match
renderWidget()
renderWidget(event): Element;
Parameters
| Parameter | Type |
|---|---|
event | CoreTreeWidgetProps |
Returns
Element
setAttached()
setAttached(attached): any;
Set whether the leaf is attached or detached from a parent. Attached does not explicitly mean that the leaf is visible though, for that the setVisible method is used
Parameters
| Parameter | Type |
|---|---|
attached | boolean |
Returns
any
Inherited from
PatchTree(TreeEntity).setAttached
setSearch()
setSearch(event): boolean;
Parameters
| Parameter | Type |
|---|---|
event | SearchEvent |
Returns
boolean
Inherited from
PatchTree(TreeEntity).setSearch
setSortKey()
setSortKey(key): void;
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
void
Inherited from
PatchTree(TreeEntity).setSortKey
setVisible()
setVisible(visible): any;
Parameters
| Parameter | Type |
|---|---|
visible | boolean |
Returns
any
Inherited from
PatchTree(TreeEntity).setVisible