UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

20 lines (19 loc) 693 B
/** * DevExtreme (esm/ui/list/ui.list.edit.decorator_registry.js) * Version: 21.1.4 * Build date: Mon Jun 21 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { extend } from "../../core/utils/extend"; export var registry = {}; export function register(option, type, decoratorClass) { var decoratorsRegistry = registry; var decoratorConfig = {}; decoratorConfig[option] = decoratorsRegistry[option] ? decoratorsRegistry[option] : {}; decoratorConfig[option][type] = decoratorClass; extend(decoratorsRegistry, decoratorConfig) }