ListInput.page
property · packages/mixins-crud/src/index.ts:56
readonly page: RemoteData<Page<Row>>CRUD / foldkit-mixins-crud
interface · packages/mixins-crud/src/index.ts:55
interface ListInput<Row, Message, Key extends string = string> {
readonly page: RemoteData<Page<Row>>
readonly onOpen?: ((row: Row) => Message) | undefined
readonly onMore?: Message | undefined
readonly onRetry?: Message | undefined
readonly sort?:
| {
readonly [K in Key]?: SortedColumn<Message>
}
| undefined
readonly renderers?: DisplayRenderers<Message> | undefined
readonly cells?:
| {
readonly [K in Key]?: (row: Row, h: HtmlBuilder<Message>) => Html
}
| undefined
readonly rowKey?: ((row: Row) => string) | undefined
readonly words?: ViewWords | undefined
}What a list's Style and Behavior attachments may read, and what the application gives it.
ListInput.pageproperty · packages/mixins-crud/src/index.ts:56
readonly page: RemoteData<Page<Row>>ListInput.onOpenproperty · packages/mixins-crud/src/index.ts:58
readonly onOpen?: ((row: Row) => Message) | undefinedOpens a row. Given, the first shown cell of each row is a button that sends it.
ListInput.onMoreproperty · packages/mixins-crud/src/index.ts:60
readonly onMore?: Message | undefinedLoads the next page. Shown while the page has one.
ListInput.onRetryproperty · packages/mixins-crud/src/index.ts:66
readonly onRetry?: Message | undefinedAsks again after a failed read, usually a Message whose update returns
Data.refresh. Given, a failed list shows a button that sends it; a failed
read is not retried on its own.
ListInput.sortproperty · packages/mixins-crud/src/index.ts:68
readonly sort?:
| {
readonly [K in Key]?: SortedColumn<Message>
}
| undefinedThe columns that sort, each with its state and its Message.
ListInput.renderersproperty · packages/mixins-crud/src/index.ts:70
readonly renderers?: DisplayRenderers<Message> | undefinedRenderers by Display kind, for every column of that kind.
ListInput.cellsproperty · packages/mixins-crud/src/index.ts:72
readonly cells?:
| {
readonly [K in Key]?: (row: Row, h: HtmlBuilder<Message>) => Html
}
| undefinedOne column drawn specially; it wins over a renderer. Every other cell says Display.show.
ListInput.rowKeyproperty · packages/mixins-crud/src/index.ts:74
readonly rowKey?: ((row: Row) => string) | undefinedWhat identifies a row across renders. Default its id, else its position.
ListInput.wordsproperty · packages/mixins-crud/src/index.ts:75
readonly words?: ViewWords | undefined