UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

27 lines (25 loc) 833 B
import { TextEditor } from "../textEditor/index.mjs"; export const EDITOR_TYPE = 'time'; /** * @private * @class TimeEditor */ export class TimeEditor extends TextEditor { static get EDITOR_TYPE() { return EDITOR_TYPE; } /** * Prepares editor's meta data. * * @param {number} row The visual row index. * @param {number} col The visual column index. * @param {number|string} prop The column property (passed when datasource is an array of objects). * @param {HTMLTableCellElement} td The rendered cell element. * @param {*} value The rendered value. * @param {object} cellProperties The cell meta object (see {@link Core#getCellMeta}). */ prepare(row, col, prop, td, value, cellProperties) { super.prepare(row, col, prop, td, value, cellProperties); this.TEXTAREA.dir = 'ltr'; } }