@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
JavaScript
import Service from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
export default class TableContextService extends Service {
node;
table;
getSelectedIds() {
return this.table.selectedRows.map((_) => _.id);
}
getSelectedRows() {
return this.table.selectedRows;
}
untoggleSelectAll() {
return this.table.untoggleSelectAll();
}
}