@ni/nimble-react
Version:
React components for the NI Nimble Design System
21 lines • 817 B
JavaScript
import { Table, tableTag } from '@ni/nimble-components/dist/esm/table';
import { wrap } from '../utilities/react-wrapper';
export { tableTag };
export {};
export const NimbleTable = wrap(Table, {
events: {
onActionMenuBeforeToggle: 'action-menu-beforetoggle',
onActionMenuToggle: 'action-menu-toggle',
onSelectionChange: 'selection-change',
onColumnConfigurationChange: 'column-configuration-change',
onRowExpandToggle: 'row-expand-toggle',
}
});
/**
* Helper to assign Table refs with generics to ref bindings
* See: https://github.com/ni/nimble/issues/2784
* @param tableRef A ref to a table created with `useRef`
* @returns A ref type compatible with normal `ref` bindings
*/
export const fromTableRef = (tableRef) => tableRef;
//# sourceMappingURL=index.js.map