UNPKG

angular-gridster2

Version:
91 lines (90 loc) 2.74 kB
export declare type GridType = 'fit' | 'scrollVertical' | 'scrollHorizontal' | 'fixed' | 'verticalFixed' | 'horizontalFixed'; export declare type displayGrid = 'always' | 'onDrag&Resize' | 'none'; export declare type compactType = 'none' | 'compactUp' | 'compactLeft' | 'compactUp&Left' | 'compactLeft&Up'; export interface GridsterConfig { gridType?: GridType; fixedColWidth?: number; fixedRowHeight?: number; keepFixedHeightInMobile?: boolean; keepFixedWidthInMobile?: boolean; compactType?: compactType; mobileBreakpoint?: number; minCols?: number; maxCols?: number; minRows?: number; maxRows?: number; defaultItemCols?: number; defaultItemRows?: number; maxItemCols?: number; maxItemRows?: number; minItemCols?: number; minItemRows?: number; minItemArea?: number; maxItemArea?: number; margin?: number; outerMargin?: boolean; scrollSensitivity?: number; scrollSpeed?: number; initCallback?: Function; destroyCallback?: Function; itemChangeCallback?: Function; itemResizeCallback?: Function; itemInitCallback?: Function; itemRemovedCallback?: Function; draggable?: Draggable; resizable?: Resizable; swap?: boolean; pushItems?: boolean; disablePushOnDrag?: boolean; disablePushOnResize?: boolean; pushDirections?: PushDirections; pushResizeItems?: boolean; displayGrid?: displayGrid; disableWindowResize?: boolean; disableWarnings?: boolean; enableEmptyCellClick?: boolean; enableEmptyCellContextMenu?: boolean; enableEmptyCellDrop?: boolean; enableEmptyCellDrag?: boolean; emptyCellClickCallback?: Function; emptyCellContextMenuCallback?: Function; emptyCellDropCallback?: Function; emptyCellDragCallback?: Function; emptyCellDragMaxCols?: number; emptyCellDragMaxRows?: number; api?: { resize?: Function; optionsChanged?: Function; getNextPossiblePosition?: Function; }; [propName: string]: any; } export interface Draggable extends DragBase { ignoreContentClass?: string; ignoreContent?: boolean; dragHandleClass?: string; } export interface Resizable extends DragBase { handles?: { s: boolean; e: boolean; n: boolean; w: boolean; se: boolean; ne: boolean; sw: boolean; nw: boolean; }; } export interface DragBase { enabled?: boolean; stop?: Function; start?: Function; delayStart?: number; } export interface PushDirections { north: boolean; east: boolean; south: boolean; west: boolean; }