@asi-ngtools/lib
Version:
This project is a little components library, simple to use, which will help you to simplify your project.
32 lines (31 loc) • 1.34 kB
TypeScript
import { DefaultControlValueAccessor } from './../common/default-control-value-accessor';
import { AsiRadioButtonComponent } from './asi-radio-button/asi-radio-button.component';
import { TemplateRef, QueryList, OnInit, AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
export declare class AsiRadioButtonGroupComponent 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;
/** Allow you to select multiple value */
multiple: boolean;
/** Track data base on a sub attribute rather than reference */
trackBy: string;
queryRadios: QueryList<AsiRadioButtonComponent>;
contentTemplate: TemplateRef<any>;
radios: AsiRadioButtonComponent[];
constructor(renderer: Renderer2, elementRef: ElementRef);
ngOnInit(): void;
getRadios(): AsiRadioButtonComponent[];
onRadioChecked(radioEvent: {
index: number;
value: boolean;
}): void;
private getRadioForIndex(index);
ngAfterContentInit(): void;
writeValue(value: any): void;
private initRadioButton(value);
}