gridstack-profile
Version:
TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)
45 lines • 1.31 kB
JavaScript
/**
* types.ts 8.2.1-dev
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
*/
// default values for grid options - used during init and when saving out
export const gridDefaults = {
alwaysShowResizeHandle: 'mobile',
animate: true,
auto: true,
cellHeight: 'auto',
cellHeightThrottle: 100,
cellHeightUnit: 'px',
column: 12,
draggable: { handle: '.grid-stack-item-content', appendTo: 'body', scroll: true },
handle: '.grid-stack-item-content',
itemClass: 'grid-stack-item',
margin: 10,
marginUnit: 'px',
maxRow: 0,
minRow: 0,
oneColumnSize: 768,
placeholderClass: 'grid-stack-placeholder',
placeholderText: '',
removableOptions: { accept: '.grid-stack-item' },
resizable: { handles: 'se' },
rtl: 'auto',
// **** same as not being set ****
// disableDrag: false,
// disableOneColumnMode: false,
// disableResize: false,
// float: false,
// handleClass: null,
// oneColumnModeDomSort: false,
// removable: false,
// staticGrid: false,
// styleInHead: false,
};
/** default dragIn options */
export const dragInDefaultOptions = {
handle: '.grid-stack-item-content',
appendTo: 'body',
// revert: 'invalid',
// scroll: false,
};
//# sourceMappingURL=types.js.map