UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

36 lines (35 loc) • 1.31 kB
/** * DevExtreme (esm/__internal/grids/tree_list/grid_view.js) * Version: 26.1.6 * Build date: Fri Oct 16 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { gridViewModule, ResizingController } from "../../grids/grid_core/views/grid_view"; import treeListCore from "./core"; const TREELIST_EXPANDABLE_INSTRUCTION = "dxTreeList-ariaExpandableInstruction"; class TreeListResizingController extends ResizingController { constructor() { super(...arguments); this._expandableWidgetAriaId = TREELIST_EXPANDABLE_INSTRUCTION } _getWidgetAriaLabel() { return "dxTreeList-ariaTreeList" } _toggleBestFitMode(isBestFit) { super._toggleBestFitMode(isBestFit); const $rowsTable = this._rowsView.getTableElement(); null === $rowsTable || void 0 === $rowsTable || $rowsTable.find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"), isBestFit) } } treeListCore.registerModule("gridView", { defaultOptions: gridViewModule.defaultOptions, controllers: Object.assign({}, gridViewModule.controllers, { resizing: TreeListResizingController }), views: gridViewModule.views });