Class: LeafList
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new LeafList(item?
): LeafList
Parameters
Name | Type |
---|---|
item? | ILeaf | ILeaf [] |
Returns
Defined in
leafer/packages/list/src/LeafList.ts:10
Properties
list
• list: ILeaf
[]
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:5
keys
• keys: INumberMap
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:6
Accessors
length
• get
length(): number
Returns
number
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:8
Methods
has
▸ has(leaf
): boolean
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
boolean
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:15
indexAt
▸ indexAt(index
): ILeaf
Parameters
Name | Type |
---|---|
index | number |
Returns
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:19
indexOf
▸ indexOf(leaf
): number
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
number
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:23
add
▸ add(leaf
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:29
addAt
▸ addAt(leaf
, index?
): void
Parameters
Name | Type | Default value |
---|---|---|
leaf | ILeaf | undefined |
index | number | 0 |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:37
addList
▸ addList(list
): void
Parameters
Name | Type |
---|---|
list | ILeaf [] |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:52
remove
▸ remove(leaf
): void
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:57
sort
▸ sort(reverse?
): void
Parameters
Name | Type |
---|---|
reverse? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:73
forEach
▸ forEach(itemCallback
): void
Parameters
Name | Type |
---|---|
itemCallback | ILeafListItemCallback |
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:82
clone
▸ clone(): ILeafList
Returns
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:86
update
▸ update(): void
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:94
reset
▸ reset(): void
Returns
void
Implementation of
Defined in
leafer/packages/list/src/LeafList.ts:100
destroy
▸ destroy(): void
Returns
void