@revolist/revogrid
Version:
Virtual reactive data grid spreadsheet component - RevoGrid.
13 lines (12 loc) • 407 B
JavaScript
/*!
* Built by Revolist OU ❤️
*/
import { EDIT_INPUT_WR } from "../../utils/consts";
// is edit input
export function isEditInput(el) {
return !!(el === null || el === void 0 ? void 0 : el.closest(`.${EDIT_INPUT_WR}`));
}
// Type guard for EditorCtrConstructible
export function isEditorCtrConstructible(editor) {
return typeof editor === 'function' && typeof editor.prototype === 'object';
}