gridstack
Version:
TypeScript/JS lib for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)
23 lines (22 loc) • 1.11 kB
TypeScript
import { GridStackElement } from '../gridstack';
import { GridStackDD, DDOpts, DDKey, DDDropOpt, DDCallback, DDValue } from '../gridstack-dd';
import { GridItemHTMLElement, DDDragInOpt } from '../types';
import * as $ from 'jquery';
export { $ };
import 'jquery-ui';
import 'jquery.ui.touch-punch';
export * from '../gridstack-dd';
/**
* legacy Jquery-ui based drag'n'drop plugin.
*/
export declare class GridStackDDJQueryUI extends GridStackDD {
resizable(el: GridItemHTMLElement, opts: DDOpts, key?: DDKey, value?: DDValue): GridStackDD;
draggable(el: GridItemHTMLElement, opts: DDOpts, key?: DDKey, value?: DDValue): GridStackDD;
dragIn(el: GridStackElement, opts: DDDragInOpt): GridStackDD;
droppable(el: GridItemHTMLElement, opts: DDOpts | DDDropOpt, key?: DDKey, value?: DDValue): GridStackDD;
isDroppable(el: HTMLElement): boolean;
isDraggable(el: HTMLElement): boolean;
isResizable(el: HTMLElement): boolean;
on(el: GridItemHTMLElement, name: string, callback: DDCallback): GridStackDD;
off(el: GridItemHTMLElement, name: string): GridStackDD;
}