devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
26 lines (25 loc) • 844 B
JavaScript
/**
* DevExtreme (esm/ui/list/ui.list.edit.decorator_menu_helper.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/
*/
var EditDecoratorMenuHelperMixin = {
_menuEnabled: function() {
return !!this._menuItems().length
},
_menuItems: function() {
return this._list.option("menuItems")
},
_deleteEnabled: function() {
return this._list.option("allowItemDeleting")
},
_fireMenuAction: function($itemElement, action) {
this._list._itemEventHandlerByHandler($itemElement, action, {}, {
excludeValidators: ["disabled", "readOnly"]
})
}
};
export default EditDecoratorMenuHelperMixin;