bastilian-tabletools
    Preparing search index...

    Function useExpandable

    • Provides expandable row props for table tools.

      Parameters

      • Optionaloptions: {
            canCollapseAll?: boolean;
            detailsComponent?: object;
            detailsProps?: object;
            items?: any[];
        }

        AsyncTableTools options

        • OptionalcanCollapseAll?: boolean

          Whether to enable the expand/collapse all toggle in the table header (defaults to true)

        • OptionaldetailsComponent?: object

          A component that should be rendered as a details row

        • OptionaldetailsProps?: object

          Props spread onto each details row

        • Optionalitems?: any[]

          Items currently rendered in the table (used for expand/collapse all)

      Returns useExpandableReturn

      Expandable props for variant adapters