Files
aria-grid-demo/src/app/app.ts
T

24 lines
982 B
TypeScript

import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { JtSelectComponent, JtSelectOption } from '@jambotron/aria-grid';
import { BasicExampleComponent } from './examples/basic-example';
import { BulkExampleComponent } from './examples/bulk-example';
import { RowActionsExampleComponent } from './examples/row-actions-example';
import { Lang, lang } from './i18n/labels';
import { THEMES, ThemeService } from './theme/theme.service';
@Component({
selector: 'app-root',
imports: [JtSelectComponent, BasicExampleComponent, BulkExampleComponent, RowActionsExampleComponent],
templateUrl: './app.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class App {
protected readonly theme = inject(ThemeService).theme;
protected readonly themes = THEMES;
protected readonly lang = lang;
protected readonly langs: JtSelectOption<Lang>[] = [
{ value: 'en', label: 'English' },
{ value: 'ru', label: 'Русский' }
];
}