Skip to content

Interface: ILeafList

Implemented by

Table of contents

Properties

Methods

Properties

list

list: ILeaf[]

Defined in

leafer/packages/interface/src/data/IList.ts:15


keys

keys: INumberMap

Defined in

leafer/packages/interface/src/data/IList.ts:16


length

Readonly length: number

Defined in

leafer/packages/interface/src/data/IList.ts:17

Methods

has

has(leaf): boolean

Parameters

NameType
leafILeaf

Returns

boolean

Defined in

leafer/packages/interface/src/data/IList.ts:18


indexAt

indexAt(index): ILeaf

Parameters

NameType
indexnumber

Returns

ILeaf

Defined in

leafer/packages/interface/src/data/IList.ts:19


indexOf

indexOf(leaf): number

Parameters

NameType
leafILeaf

Returns

number

Defined in

leafer/packages/interface/src/data/IList.ts:20


add

add(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:22


addAt

addAt(leaf, index): void

Parameters

NameType
leafILeaf
indexnumber

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:23


addList

addList(list): void

Parameters

NameType
listILeaf[]

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:24


remove

remove(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:25


forEach

forEach(itemCallback): void

Parameters

NameType
itemCallbackILeafListItemCallback

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:27


sort

sort(reverse?): void

Parameters

NameType
reverse?boolean

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:28


clone

clone(): ILeafList

Returns

ILeafList

Defined in

leafer/packages/interface/src/data/IList.ts:29


update

update(): void

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:30


reset

reset(): void

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:31


destroy

destroy(): void

Returns

void

Defined in

leafer/packages/interface/src/data/IList.ts:32

Released under the MIT License.