@progress/kendo-react-data-tools
Version:
Includes React Pager & React Filter component, an intuitive interface to create complex filter descriptions. KendoReact Data Tools package
42 lines (41 loc) • 1.56 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use client";
import * as s from "react";
import { Draggable as t } from "@progress/kendo-react-common";
class l extends s.PureComponent {
constructor() {
super(...arguments), this.draggable = null, this.onPress = (e) => {
const r = this.draggable && this.draggable.element;
r && this.props.pressHandler && this.props.pressHandler(e.event, r);
}, this.onDrag = (e) => {
const r = this.draggable && this.draggable.element;
r && this.props.dragHandler && this.props.dragHandler(e.event, r);
}, this.onRelease = (e) => {
this.draggable && this.draggable.element && this.props.releaseHandler && this.props.releaseHandler(e.event);
};
}
render() {
return /* @__PURE__ */ s.createElement(
t,
{
onPress: this.onPress,
onDrag: this.onDrag,
onRelease: this.onRelease,
ref: (e) => {
this.draggable = e;
},
autoScroll: { direction: { vertical: !1, horizontal: !0 } }
},
/* @__PURE__ */ s.createElement("tr", { className: "k-table-row", "aria-rowindex": this.props.ariaRowIndex, role: "row" }, this.props.children)
);
}
}
export {
l as ColumnDraggable
};