Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 1x 10x 2x 7x 1x 1x 5x | import { Directive, DoCheck } from '@angular/core'; import { DynamicFormElementBase } from '../dynamic-form-element-base'; import { DynamicFormItem } from './dynamic-form-item'; import { DynamicFormItems } from './dynamic-form-items'; import { DynamicFormItemsDefinition } from './dynamic-form-items-definition'; import { DynamicFormItemsTemplate } from './dynamic-form-items-template'; @Directive() export abstract class DynamicFormItemsBase< Template extends DynamicFormItemsTemplate = DynamicFormItemsTemplate, Definition extends DynamicFormItemsDefinition<Template> = DynamicFormItemsDefinition<Template>, Items extends DynamicFormItems<Template, Definition> = DynamicFormItems<Template, Definition> > extends DynamicFormElementBase<Template, Definition, Items> implements DoCheck { constructor() { super(); } get children(): DynamicFormItem[] { return this.element.children; } get selectedIndex(): number { return this.element.selectedIndex; } get selectedItem(): DynamicFormItem { return this.element.selectedItem; } ngDoCheck(): void { this.element.check(); } selectItem(index: number): void { this.element.selectItem(index); } } |