The Props interface represents the properties of the Table component.

Type Parameters

  • T

Hierarchy

  • TableProps

Properties

archiveRowColumnVisible?: boolean

Flag indicating if the archive row column is visible (optional).

background?: string

The background color of the table (optional).

color?: string

The color of the text in the table (optional).

columns: Column[]

The columns of the table.

data: DataItem<undefined | T>[]

The data to be displayed in the table.

deleteRowColumnVisible?: boolean

Flag indicating if the delete row column is visible (optional).

disableSelectRow?: boolean
editRowColumnVisible?: boolean

Flag indicating if the edit row column is visible (optional).

handleArchiveRow?: ((id, e?) => void)

Type declaration

    • (id, e?): void
    • The function to handle row archiving (optional).

      Parameters

      • id: string | number
      • Optional e: Event

      Returns void

handleDeleteRow?: ((id, e?) => void)

Type declaration

    • (id, e?): void
    • The function to handle row deletion (optional).

      Parameters

      • id: string | number
      • Optional e: Event

      Returns void

handleEditRow?: ((id, e?) => void)

Type declaration

    • (id, e?): void
    • The function to handle row editing (optional).

      Parameters

      • id: string | number
      • Optional e: Event

      Returns void

hoverBackground?: string

The background color of the hovered rows in the table (optional).

renderExportDataComponent?: ((filteredData, columnsManaged, headerProperty?) => ReactNode)

Type declaration

    • (filteredData, columnsManaged, headerProperty?): ReactNode
    • A function to render a data export component (optional).

      Parameters

      Returns ReactNode

selectedRowsBackground?: string

The background color of the selected rows in the table (optional).

Generated using TypeDoc