UNPKG

hadron-document

Version:
43 lines 1.09 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const standard_1 = __importDefault(require("./standard")); /** * Undefined is always 'undefined' */ const VALUE = 'undefined'; /** * CRUD editor for undefined values. */ class UndefinedEditor extends standard_1.default { /** * Create the editor with the element. * * @param {Element} element - The hadron document element. */ constructor(element) { super(element); } /** * Get the number of characters the value should display. * * @param {Boolean} editMode - If the element is being edited. * * @returns {Number} The number of characters. */ size() { return VALUE.length; } /** * Get the value being edited. * * @returns {Object} The value. */ value() { return VALUE; } } exports.default = UndefinedEditor; //# sourceMappingURL=undefined.js.map