Class: FmcListUtility<T>
Utility class to drive list
Type parameters
Name |
---|
T |
Constructors
constructor
• new FmcListUtility<T
>(page
, data
, renderRow
, size?
, firstPageSize?
): FmcListUtility
<T
>
FMC List Utility Class
Type parameters
Name |
---|
T |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
page | AbstractFmcPage <any > | undefined | The Fmc Page |
data | SubscribableArray <T > | undefined | The row input data |
renderRow | (page : AbstractFmcPage <any >, indexInDisplay : number , prevData? : T , data? : T , nextData? : T ) => FmcRenderTemplateRow [] | undefined | Function to call when the list needs to be re-rendered with new data |
size | number | 5 | row count of the list per page |
firstPageSize | undefined | number | undefined | row count of the first page of the list |
Returns
Defined in
src/sdk/fmc/FmcListUtility.ts:19
Properties
data
• Protected
Readonly
data: SubscribableArray
<T
>
The row input data
Defined in
src/sdk/fmc/FmcListUtility.ts:21
firstPageSize
• Protected
Readonly
firstPageSize: undefined
| number
= undefined
row count of the first page of the list
Defined in
src/sdk/fmc/FmcListUtility.ts:24
page
• Protected
Readonly
page: AbstractFmcPage
<any
>
The Fmc Page
Defined in
src/sdk/fmc/FmcListUtility.ts:20
renderRow
• Protected
Readonly
renderRow: (page
: AbstractFmcPage
<any
>, indexInDisplay
: number
, prevData?
: T
, data?
: T
, nextData?
: T
) => FmcRenderTemplateRow
[]
Function to call when the list needs to be re-rendered with new data
Type declaration
▸ (page
, indexInDisplay
, prevData?
, data?
, nextData?
): FmcRenderTemplateRow
[]
Function to call when the list needs to be re-rendered with new data
Parameters
Name | Type |
---|---|
page | AbstractFmcPage <any > |
indexInDisplay | number |
prevData? | T |
data? | T |
nextData? | T |
Returns
Defined in
src/sdk/fmc/FmcListUtility.ts:22
size
• Protected
Readonly
size: number
= 5
row count of the list per page
Defined in
src/sdk/fmc/FmcListUtility.ts:23
Methods
handleSelectKey
▸ handleSelectKey(event
): Promise
<boolean
>
Handles when the Select Key is pressed.
Parameters
Name | Type | Description |
---|---|---|
event | LineSelectKeyEvent | The Select Key Event. |
Returns
Promise
<boolean
>
Whether the event was handled by this component.
Defined in
src/sdk/fmc/FmcListUtility.ts:59
renderList
▸ renderList(page
): FmcRenderTemplateRow
[]
Returns a rendered list page for a specified page
Parameters
Name | Type | Description |
---|---|---|
page | number | The page number to render |
Returns
The FmcRenderTemplate
Defined in
src/sdk/fmc/FmcListUtility.ts:33