UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

30 lines (29 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserInterfaceInternalApi = void 0; const ApiBase_1 = require("../Implementation/ApiBase"); class UserInterfaceInternalApi extends ApiBase_1.ApiBase { prepareAdaptableIconDef(icon) { if (icon && 'name' in icon) { let customIcon = icon && 'name' in icon ? this.getUserInterfaceApi().getCustomIconDefinition(icon.name) : null; if (customIcon) { icon = customIcon; } } return icon; } shouldShowSelectCellEditor(column) { const showSelectCellEditor = this.getEditOptions().showSelectCellEditor; if (showSelectCellEditor) { const columnColumnContext = { column, ...this.getAdaptableInternalApi().buildBaseContext(), }; return showSelectCellEditor(columnColumnContext); } return false; } } exports.UserInterfaceInternalApi = UserInterfaceInternalApi;