devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
26 lines (25 loc) • 819 B
JavaScript
/**
* DevExtreme (esm/__internal/ui/splitter/utils/event.js)
* Version: 24.2.6
* Build date: Mon Mar 17 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
camelize
} from "../../../../core/utils/inflector";
export function getActionNameByEventName(eventName) {
return `_${camelize(eventName.replace("on",""))}Action`
}
export const RESIZE_EVENT = {
onResize: "onResize",
onResizeStart: "onResizeStart",
onResizeEnd: "onResizeEnd"
};
export const COLLAPSE_EVENT = {
onCollapsePrev: "onCollapsePrev",
onCollapseNext: "onCollapseNext"
};
export const ITEM_COLLAPSED_EVENT = "onItemCollapsed";
export const ITEM_EXPANDED_EVENT = "onItemExpanded";