Function useColumnConfig

Manages column configuration for sorting modal.

  • Parameters

    • params: ISortModalProps

      The parameters for the sorting modal.

    Returns {
        columns: IColumn<any, any, any>[];
        open: boolean;
        pickColumns: (() => void);
        render: (() => Element);
    }

    • An object containing the open state, render function, sorted columns, and pick Columns function.
    • columns: IColumn<any, any, any>[]
    • open: boolean
    • pickColumns: (() => void)
        • (): void
        • Returns void

    • render: (() => Element)
        • (): Element
        • Renders a dialog with a list of columns.

          Returns Element

          The rendered dialog component.