@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
25 lines (24 loc) • 756 B
JavaScript
var n = /* @__PURE__ */ (function(t) {
return t.EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW", t.COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW", t.TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW", t;
})({}), o = (t, e) => {
document.dispatchEvent(new CustomEvent(n.EXPAND_ROW, { detail: {
tableId: t,
rowId: e
} }));
}, E = (t, e) => {
document.dispatchEvent(new CustomEvent(n.COLLAPSE_ROW, { detail: {
tableId: t,
rowId: e
} }));
}, O = (t, e) => {
document.dispatchEvent(new CustomEvent(n.TOGGLE_ROW, { detail: {
tableId: t,
rowId: e
} }));
};
export {
n as VirtualizedTableEvent,
E as sendCollapseRowEvent,
o as sendExpandRowEvent,
O as sendToggleRowEvent
};