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

package.build.lib.features.Pinning.d.ts Maven / Gradle / Ivy

The newest version!
import { TableFeature } from '../core/table';
import { OnChangeFn, Updater, Column, Cell, RowData } from '../types';
export type ColumnPinningPosition = false | 'left' | 'right';
export interface ColumnPinningState {
    left?: string[];
    right?: string[];
}
export interface ColumnPinningTableState {
    columnPinning: ColumnPinningState;
}
export interface ColumnPinningOptions {
    onColumnPinningChange?: OnChangeFn;
    enablePinning?: boolean;
}
export interface ColumnPinningDefaultOptions {
    onColumnPinningChange: OnChangeFn;
}
export interface ColumnPinningColumnDef {
    enablePinning?: boolean;
}
export interface ColumnPinningColumn {
    getCanPin: () => boolean;
    getPinnedIndex: () => number;
    getIsPinned: () => ColumnPinningPosition;
    pin: (position: ColumnPinningPosition) => void;
}
export interface ColumnPinningRow {
    getLeftVisibleCells: () => Cell[];
    getCenterVisibleCells: () => Cell[];
    getRightVisibleCells: () => Cell[];
}
export interface ColumnPinningInstance {
    setColumnPinning: (updater: Updater) => void;
    resetColumnPinning: (defaultState?: boolean) => void;
    getIsSomeColumnsPinned: (position?: ColumnPinningPosition) => boolean;
    getLeftLeafColumns: () => Column[];
    getRightLeafColumns: () => Column[];
    getCenterLeafColumns: () => Column[];
}
export declare const Pinning: TableFeature;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy