gridstack
Version:
TypeScript/JS lib for dashboard layout and creation, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)
31 lines • 1.2 kB
JavaScript
/**
* gridstack-ddi.ts 5.0
* Copyright (c) 2021 Alain Dumesny - see GridStack root license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.GridStackDDI = void 0;
/**
* Abstract Partial Interface API for drag'n'drop plugin - look at GridStackDD and HTML5 / Jquery implementation versions
*/
var GridStackDDI = /** @class */ (function () {
function GridStackDDI() {
}
/** call this method to register your plugin instead of the default no-op one */
GridStackDDI.registerPlugin = function (pluginClass) {
GridStackDDI.ddi = new pluginClass();
return GridStackDDI.ddi;
};
/** get the current registered plugin to use */
GridStackDDI.get = function () {
return GridStackDDI.ddi || GridStackDDI.registerPlugin(GridStackDDI);
};
/** removes any drag&drop present (called during destroy) */
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
GridStackDDI.prototype.remove = function (el) {
return this; // no-op for static grids
};
return GridStackDDI;
}());
exports.GridStackDDI = GridStackDDI;
//# sourceMappingURL=gridstack-ddi.js.map
;