Winter Cardinal UI - v0.442.0 / DListData
DList data.
Name |
---|
ITEM |
• Readonly
accessor: DListItemAccessor
<ITEM
>
src/main/typescript/wcardinal/ui/d-list-data.ts:45
• after: ITEM
[]
src/main/typescript/wcardinal/ui/d-list-data.ts:43
• before: ITEM
[]
src/main/typescript/wcardinal/ui/d-list-data.ts:41
• items: ITEM
[]
src/main/typescript/wcardinal/ui/d-list-data.ts:42
• Readonly
mapped: DListDataMapped
<ITEM
>
src/main/typescript/wcardinal/ui/d-list-data.ts:44
• Readonly
selection: DListDataSelection
<ITEM
>
src/main/typescript/wcardinal/ui/d-list-data.ts:46
▸ add(item
, index?
): boolean
Adds the given item. If the index is given, inserts the given item at that index.
Name | Type | Description |
---|---|---|
item |
ITEM |
an item |
index? |
number |
an index |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-list-data.ts:78
▸ addAll(newItems
, index?
): boolean
Adds all the given items. If the index is given, inserts all the given items at that index.
Name | Type | Description |
---|---|---|
newItems |
ITEM [] |
items |
index? |
number |
an index |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-list-data.ts:88
▸ clear(): boolean
Removes all the items.
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-list-data.ts:103
▸ clearAndAdd(item
): boolean
Removes all the existing items and adds the given item.
Name | Type | Description |
---|---|---|
item |
ITEM |
an item |
boolean
true if the data is changed
src/main/typescript/wcardinal/ui/d-list-data.ts:111
▸ clearAndAddAll(newItems
): boolean
Removes all the existing items and adds all the given items.
Name | Type | Description |
---|---|---|
newItems |
ITEM [] |
items to be inserted |
boolean
true if the data is changed.
src/main/typescript/wcardinal/ui/d-list-data.ts:119
▸ each(iteratee
, ifrom?
, ito?
): void
Calls the specified iteratee on each datum of the specified index range. If called iteratee explicitly returns false, stops an iteration.
Name | Type | Description |
---|---|---|
iteratee |
DListDataIteratee <ITEM > |
an function called on each datum |
ifrom? |
number |
an index to start an iteration |
ito? |
number |
an index before which an interation stops |
void
src/main/typescript/wcardinal/ui/d-list-data.ts:129
▸ get(index
): null
| ITEM
Returns an item at the specified index. The index is an index on itemsrows filters and sorters are not applied.
Name | Type | Description |
---|---|---|
index |
number |
an index on rows filters and sorters are not applied |
null
| ITEM
src/main/typescript/wcardinal/ui/d-list-data.ts:59
▸ remove(index
): null
| ITEM
Removes an item at the given index.
Name | Type | Description |
---|---|---|
index |
number |
an index of the item to be removed. |
null
| ITEM
a removed item or null
src/main/typescript/wcardinal/ui/d-list-data.ts:96
▸ set(index
, item
): null
| ITEM
Replaces an item at the specified index with the given item.
Name | Type | Description |
---|---|---|
index |
number |
an index of the item to be replaced. |
item |
ITEM |
an item |
null
| ITEM
a replaced item or null
src/main/typescript/wcardinal/ui/d-list-data.ts:68
▸ size(): number
Returns a size of data.
number