All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ducks.table.constants.ts Maven / Gradle / Ivy

The newest version!
import { Table } from './Table'

export const VISIBLE_STATE = 'visibleState'
export const IS_DEFAULT_COLUMNS = 'isDefaultColumns'

export const getDefaultColumnState = () => ({
    isInit: true,
    visible: true,
    [VISIBLE_STATE]: true,
    disabled: false,
    frozen: false,
    key: '',
    columnId: '',
})

export const getDefaultTableState = (): Table => ({
    columns: {},
    [IS_DEFAULT_COLUMNS]: false,
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy