UNPKG

@progress/kendo-react-treelist

Version:

React TreeList enables the display of self-referencing tabular data. KendoReact TreeList package

34 lines (33 loc) 1.13 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import * as e from "react"; import { classNames as c } from "@progress/kendo-react-common"; import { Toolbar as i } from "@progress/kendo-react-buttons"; const u = e.forwardRef( (r, s) => { const { className: t, ...n } = r, a = e.useRef(null), o = e.useRef(null); e.useImperativeHandle(o, () => ({ element: a.current, props: r })), e.useImperativeHandle(s, () => o.current); const m = e.useMemo(() => c("k-grid-toolbar", t), [t]); return /* @__PURE__ */ e.createElement( i, { id: r.id, ref: (l) => { l && (a.current = l.element); }, className: m, ...n }, r.children ); } ); u.displayName = "KendoReactTreeListToolbar"; export { u as TreeListToolbar };