centurion-erp-ui
    Preparing search index...

    Type Alias DataSetHeaderProps<T>

    Props for DataSetFooter component.

    0.9.0

    type DataSetHeaderProps<T extends React.ElementType = React.ElementType> = {
        children?: React.ReactNode;
        component?: T;
        componentProps?: React.ComponentPropsWithoutRef<T>;
        itemCount: number;
        metadata: APIMetadata;
        perPage: number;
        selectedRows: number[];
        selectRows: (rows: "all" | number | number[]) => void;
    }

    Type Parameters

    • T extends React.ElementType = React.ElementType

      React element type used for the container component.

    Index

    Properties

    children?: React.ReactNode

    Additional content to render.

    component?: T

    Container component used to wrap the footer UI.

    componentProps?: React.ComponentPropsWithoutRef<T>

    Props forwarded to the container component.

    itemCount: number

    Total count of items in the dataset.

    metadata: APIMetadata

    Objects metadata as presented by the API.

    perPage: number

    Number of items to display per page.

    selectedRows: number[]

    Row IDs of selected rows from the dataset.

    selectRows: (rows: "all" | number | number[]) => void

    Callback to update page number.

    Type Declaration

      • (rows: "all" | number | number[]): void
      • Parameters

        • rows: "all" | number | number[]

          Rows to select.

        Returns void