Class: LeafLevelList
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new LeafLevelList(item?
): LeafLevelList
Parameters
Name | Type |
---|---|
item? | ILeaf | ILeaf [] |
Returns
Defined in
leafer/packages/list/src/LeafLevelList.ts:12
Properties
levelMap
• levelMap: ILeafArrayMap
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:5
keys
• keys: INumberMap
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:6
levels
• levels: number
[]
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:7
_length
• Private
_length: number
= 0
Defined in
leafer/packages/list/src/LeafLevelList.ts:10
Accessors
length
• get
length(): number
Returns
number
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:9
Methods
has
▸ has(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:17
without
▸ without(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:21
sort
▸ sort(reverse?
): void
Parameters
Name | Type |
---|---|
reverse? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:25
addList
▸ addList(list
): void
Parameters
Name | Type |
---|---|
list | ILeaf [] |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:34
add
▸ add(leaf
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:38
forEach
▸ forEach(itemCallback
): void
Parameters
Name | Type |
---|---|
itemCallback | ILeafListItemCallback |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:52
reset
▸ reset(): void
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafLevelList.ts:62
destroy
▸ destroy(): void
Returns
void