Type Parameters

Hierarchy

  • ListRowProps

Properties

actionSize: string

Size of action button and checkbox

columnGap: string

Header row height

columnSizes: string

Spacing between columns

columns: Column<T>[]

The column definition

data: T

List data

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

Horizontal alignment of text (default: left)

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

Type declaration

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

      Parameters

      • data: T

      Returns ActionData[]

isRowDisabled?: boolean

Defines whether a row is disabled (default: false)

itemSelected?: boolean

Whether or not the item is selected (default: false)

onItemClicked?: LocationDescriptor<unknown> | ((data) => void)

Used for when a row is clicked. This can be either a callback function that will be executed or a URL where the user should be navigated to. When the list should navigate the user to e.g. a details page of a entry it is recommended to directly pass the URL here instead of a callback function that does the routing in JavaScript.

Type declaration

    • (data): void
    • Parameters

      • data: T

      Returns void

onItemSelected?: ((checked) => void)

Type declaration

    • (checked): void
    • A function that is getting called, when the selection state of the row changes.

      Parameters

      • checked: boolean

      Returns void

rowHeight?: string

List row height

selectionMode?: ListSelectMode

Determines which selection mode the list is in. (default: ListSelectMode.None)

showActionButton?: boolean

Defines whether an action button will be rendered (default: true)

showCheckMark?: boolean

Defines whether a check mark action button will be rendered (default: true)

showItemCheckbox?: boolean

Defines whether a checkbox for each item should be rendered (default: false)

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" | "start" | "end"

Vertical alignment of text (default: right)

Generated using TypeDoc