UNPKG

@platform/ui.datagrid

Version:

Isolated tabular DataGrid.

14 lines (13 loc) 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; var operators_1 = require("rxjs/operators"); var clipboard = require("./cmd.clipboard"); var style = require("./cmd.style"); function init(args) { var grid = args.grid, fire = args.fire; var command$ = grid.events$.pipe((0, operators_1.filter)(function (e) { return e.type === 'GRID/command'; }), (0, operators_1.map)(function (e) { return e.payload; })); clipboard.init({ grid: grid, command$: command$, fire: fire }); style.init({ grid: grid, command$: command$, fire: fire }); } exports.init = init;