goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
22 lines • 797 B
TypeScript
import { ColumnDef } from '../types';
type ColumnVisibilityModel = {
[key: string]: boolean;
};
interface UseManageColumnProps {
columns: ColumnDef[];
handleClose: () => void;
isPopupOpen: boolean;
initialSearchInput?: string;
}
export declare const useManageColumn: ({ columns, handleClose, isPopupOpen, initialSearchInput, }: UseManageColumnProps) => {
handleAllCols: (checked: boolean) => void;
toggleColumnState: (field: string) => void;
visibleColumns: ColumnVisibilityModel;
onSaveColumnView: () => void;
formatColumnName: (fieldName: string) => string;
searchInput: string;
setSearchInput: import('react').Dispatch<import('react').SetStateAction<string>>;
isAllChecked: boolean;
};
export {};
//# sourceMappingURL=useManageColumn.d.ts.map