UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

29 lines (28 loc) 1.18 kB
import { DefaultControlValueAccessor } from './../common/default-control-value-accessor'; import { AsiRadioComponent } from './asi-radio/asi-radio.component'; import { TemplateRef, QueryList, OnInit, AfterContentInit, Renderer2, ElementRef } from '@angular/core'; export declare class AsiRadioGroupComponent extends DefaultControlValueAccessor implements OnInit, AfterContentInit { private renderer; private elementRef; /** Label to display (is translated) */ label: string; /** Label position */ labelPosition: 'top' | 'left' | 'right' | 'bottom' | 'bottom-center' | 'top-center'; /** Vertical / Horizontal */ vertical: boolean; /** Track data base on a sub attribute rather than reference */ trackBy: string; queryRadios: QueryList<AsiRadioComponent>; contentTemplate: TemplateRef<any>; radios: AsiRadioComponent[]; constructor(renderer: Renderer2, elementRef: ElementRef); ngOnInit(): void; getRadios(): AsiRadioComponent[]; onRadioChecked(radioEvent: { index: number; value: boolean; }): void; ngAfterContentInit(): void; writeValue(value: any): void; private initValue(value); }