UNPKG

@funidata/ngx-fudis

Version:

Funidata Design System.

34 lines (33 loc) 1.47 kB
import { EventEmitter, OnInit } from '@angular/core'; import { FudisIdService } from '../../../../services/id/id.service'; import { FudisRadioButtonChangeEvent } from '../../../../types/forms'; import { RadioButtonGroupComponent } from '../radio-button-group.component'; import * as i0 from "@angular/core"; export declare class RadioButtonComponent implements OnInit { private _idService; protected _parentGroup: RadioButtonGroupComponent; constructor(_idService: FudisIdService, _parentGroup: RadioButtonGroupComponent); /** * Selectable value of a single Radio Button, e.g. "fair-trade-banana" */ value: string | boolean | object | null | unknown; /** * Visible label for a single Radio Button, e. g. "Fair trade banana" */ label: string; /** * Emits changed Radio button option and form control. */ handleChange: EventEmitter<FudisRadioButtonChangeEvent>; /** * Id for single Radio Button */ protected _id: string; /** * Selected Radio Button change */ protected _onChange(): void; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [null, { host: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "fudis-radio-button", never, { "value": { "alias": "value"; "required": true; }; "label": { "alias": "label"; "required": true; }; }, { "handleChange": "handleChange"; }, never, never, false, never>; }