@platform/ui.datagrid
Version:
Isolated tabular DataGrid.
10 lines (9 loc) • 387 B
JavaScript
import { filter, map } from 'rxjs/operators';
import * as clipboard from './cmd.clipboard';
import * as style from './cmd.style';
export function init(args) {
const { grid, fire } = args;
const command$ = grid.events$.pipe(filter((e) => e.type === 'GRID/command'), map((e) => e.payload));
clipboard.init({ grid, command$, fire });
style.init({ grid, command$, fire });
}