The TableHeaderProps interface represents the properties of the TableHeader component.

Hierarchy

  • TableHeaderProps

Properties

dateFormat: string

The date format of the table header.

disableFilter?: boolean

Flag indicating if filtering is disabled for the table header (optional).

disableSort?: boolean

Flag indicating if sorting is disabled for the table header (optional).

handleColumnSort: ((property, dateFormat) => void)

Type declaration

    • (property, dateFormat): void
    • The function that is called when the sort button is clicked.

      Parameters

      • property: string
      • dateFormat: string

      Returns void

handleReset: ((property) => void)

Type declaration

    • (property): void
    • The function that is called when the reset button is clicked.

      Parameters

      • property: string

      Returns void

handleSearchByProperty: ((property, value) => void)

Type declaration

    • (property, value): void
    • The function that is called when the search by property is triggered.

      Parameters

      • property: string
      • value: string

      Returns void

handleToggle: ((property) => void)

Type declaration

    • (property): void
    • The function that is called when the toggle button is clicked.

      Parameters

      • property: string

      Returns void

inputValues: {
    [key: string]: string | undefined;
}

The current input values for searching.

Type declaration

  • [key: string]: string | undefined
isOpenSearchByProperty: {
    [property: string]: boolean;
}

Record indicating whether search by property is open for each property.

Type declaration

  • [property: string]: boolean
isSortKey: boolean

Indicates if the property is currently the sort key.

isVisible: boolean

Flag indicating if the table header is visible.

label: string

The label of the table header.

property: string

The property of the table header.

sortOrder: "asc" | "desc" | "noSort"

The current order of the sort. Can be 'asc', 'desc' or 'noSort'.

Generated using TypeDoc