bastilian-tabletools
    Preparing search index...

    Function TableToolsTable

    • This component is a wrapper around the Patternfly Table component(s), the FEC PrimaryToolbar and combines them with the useTableTools hook If no TableContext

      Parameters

      • props: {
            columns: any[];
            filters?: any[];
            items: any[];
            loading?: boolean;
            options?: object;
            paginationProps?: object;
            tableBodyProps?: object;
            tableHeaderProps?: object;
            tableToolbarProps?: object;
            toolbarProps?: object;
            total?: any[];
        }

        Component Props

        • columns: any[]

          An array of column objects to render items with

        • Optionalfilters?: any[]

          an array of filters

        • items: any[]

          An array or (async) function that returns an array of items to render or an async function to call with the tableState and serialised table state

        • Optionalloading?: boolean

          Custom loading condition

        • Optionaloptions?: object

          An object of options that will be passed along to the useTableTools hook

        • OptionalpaginationProps?: object

          Props to be passed on the Pagination component

        • OptionaltableBodyProps?: object

          Props to be passed on the TableBody component

        • OptionaltableHeaderProps?: object

          Props to be passed on the TableHeader component

        • OptionaltableToolbarProps?: object

          Props to be passed on the TableToolbar (bottom toolbar) component

        • OptionaltoolbarProps?: object

          Props to be passed on the PrimaryToolbar component

        • Optionaltotal?: any[]

          Number of total items available

      Returns ReactElement<any, string | JSXElementConstructor<any>>

      Returns a PrimaryToolbar component, a Patternfly (v4) Table component and a TableToolbarComponent wrapped together

    Index