Type Parameters

Hierarchy

  • ListProps

Properties

className?: string

CSS Class name for additional styles

columnGap?: string

Spacing between columns

columns: Column<T>[]

Column definitions The order of this array determines the order of columns

data: T[]

List data

defaultSortOrder?: SortData<T>

Defines how the list data should be sorted

enableSelectAll?: boolean

In multiselect mode, whether the Select All button will be displayed. When Select All button is clicked the onItemClicked button will return SELECT_ALL instead of an array of items. (default: true)

enableSelectAllDeselect?: boolean

Sets whether deselection should be allowed in multiselect mode when select all is enabled. This would allow the user to deselect items after select all checkbox is checked. Once an item is deselected, the list will switch to a SINGLE_ITEMS selection mode.

errorMsg?: string

Optional error message to display if an error occurs. (default: 'There was an error.)

generateItemLink?: ((data) => LocationDescriptor<unknown>)

Type declaration

    • (data): LocationDescriptor<unknown>
    • When set, this function is used to generate the link that the user should be navigated to for each item.

      This property takes precedence over onItemClicked, which will not be executed in case generateItemLink is set!

      Parameters

      • data: T

      Returns LocationDescriptor<unknown>

handleRetry?: boolean

Determines whether the component should render the error message and the 'onRetry' button. Set this to false if error handling will be done outside this component. (default: true)

headerRowActionSize?: string

Header checkbox size (default: '28px')

headerRowHeight?: string

Header row height

horizontalTextAlign?: "center" | "left" | "right"

Horizontal alignment of text

inlineMenuActions?: ((data) => ActionData[])

Type declaration

    • (data): ActionData[]
    • Provide inline actions which are available through '...' context menu

      Parameters

      • data: T

      Returns ActionData[]

isError?: boolean

Defines whether there was an error with the data. If true a button will be shown that will trigger onRetry when hit.

isLoading?: boolean

Defines whether data is being loaded (default: false)

keyProperty?: keyof T

The name of the property on the data object that should be used to identify objects (default: 'id')

listRowActionSize?: string

List row action button and checkbox size (default: '50px')

listRowHeight?: string

List row height

loadingTriggerOffset?: number

Defines when the loading of the next page is triggered. The number represents the number of row left, before a load is triggered. (default: 10)

minimumWidth?: string

Minimum width of this component

onItemClicked?: ((data) => void | Promise<void>)

Type declaration

    • (data): void | Promise<void>
    • Raised when an data item is clicked.

      This is not being used, if generateItemLink is set!

      Parameters

      • data: T

      Returns void | Promise<void>

onItemSelected?: ((itemSelectEvent) => void)

Type declaration

    • (itemSelectEvent): void
    • Raised when item selection has changed

      Parameters

      Returns void

onRequestMoreData?: (() => void)

Type declaration

    • (): void
    • Raised when list has scrolled down to the item indicated by loadingTriggerOffset

      Returns void

onRetry?: (() => void)

Type declaration

    • (): void
    • Callback emitted if the user clicks on the retry button which is shown when isError is set to true

      Returns void

onSortChanged?: ((sort) => void)

Type declaration

    • (sort): void
    • Callback to emit when a sort event occurs. Name of the property and order of the direction are sent back.

      Parameters

      Returns void

rowGap?: string

Spacing between rows

selectionMode?: ListSelectMode

Determines which select mode the list is in. (default: ListSelectMode.None) If 'Single' is selected, a check mark will be rendered for each row of data If 'Multi' is selected, a checkbox will be rendered for the header and each row of data

showActionButton?: boolean | ((data) => boolean)

Defines whether an action button will be rendered (default: true) Will not render if selectMode is not 'None'

Type declaration

    • (data): boolean
    • Parameters

      • data: T

      Returns boolean

textWrap?: boolean

If set to true, column text overflow will be wrapped to a new line. Otherwise, it will be truncated with an ellipsis (default: false)

verticalTextAlign?: "center" | "end" | "start"

Vertical alignment of text

Generated using TypeDoc