* feat: 🎸 implement toolbar regions and apply to admin sessions * feat: 🎸 Add toolbar regions for desktop sessions and targets ✅ Closes: ICU-4198 Co-authored-by: Randall Morey <randall@randallmorey.com>
31 lines
590 B
JavaScript
31 lines
590 B
JavaScript
import Controller from '@ember/controller';
|
|
import { tracked } from '@glimmer/tracking';
|
|
import { action } from '@ember/object';
|
|
|
|
const possibleItems = [
|
|
{ id: 1, name: 'foo' },
|
|
{ id: 2, name: 'bar' },
|
|
{ id: 3, name: 'baz' },
|
|
];
|
|
|
|
export default class IndexController extends Controller {
|
|
// =attributes
|
|
|
|
@tracked items = [...possibleItems];
|
|
@tracked selectedItems = [possibleItems[2]];
|
|
|
|
now = new Date();
|
|
|
|
// =actions
|
|
|
|
@action
|
|
checkboxGroupChanged(selected) {
|
|
this.selectedItems = [...selected];
|
|
}
|
|
|
|
@action
|
|
clearSelected() {
|
|
this.selectedItems = [];
|
|
}
|
|
}
|