UNPKG

@fleetbase/ember-core

Version:

Provides all the core services, decorators and utilities for building a Fleetbase extension for the Console.

21 lines (16 loc) 486 B
import Service from '@ember/service'; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; export default class TableContextService extends Service { @tracked node; @tracked table; @action getSelectedIds() { return this.table.selectedRows.map((_) => _.id); } @action getSelectedRows() { return this.table.selectedRows; } @action untoggleSelectAll() { return this.table.untoggleSelectAll(); } }