-
-
+
+
+
+
+
+
+
+
+
+
`,
@@ -93,15 +102,17 @@ import { Field, form } from '@angular/forms/signals';
export class ColumnEditorComponent {
columns = model
();
- protected editDialogVisible = signal(false);
+ protected readonly editDialogVisible = signal(false);
- protected currentColumn = signal({
+ protected readonly columnTypes = ['string', 'number', 'boolean'];
+
+ protected readonly currentColumn = signal({
name: '',
enabled: true,
type: 'string',
});
- protected editingColumn = form(this.currentColumn);
+ protected readonly editingColumn = form(this.currentColumn);
protected checkboxChanged(index: number) {
this.columns.update((columns) => {