UNPKG

@c8y/ngx-components

Version:

Angular modules for Cumulocity IoT applications

79 lines 2.21 kB
import { ElementRef, EventEmitter, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i0 from "@angular/core"; /** * A component to display a radio button in a c8y-li. Use it with content projection. It * can be used standalone or with an ngModel. * * ```html * <c8y-li> * <c8y-li-radio></c8y-li-radio> * </c8y-li> * ``` */ export declare class ListItemRadioComponent implements ControlValueAccessor { /** * @ignore */ radio: ElementRef; /** * Indicates if the radio is selected. */ selected: boolean; /** * The name of the radio (use different names for different radio groups). */ name: string; /** * Indicates if the radio is disabled. */ disabled: boolean; /** * An event emitted as soon as the radio is selected. */ onSelect: EventEmitter<boolean>; /** * The current value. */ value: any; /** * @ignore */ model: any; /** * @ignore */ onChange: (value: any) => void; /** * @ignore */ onTouched: () => void; /** * Resets the native radio element. */ reset(): void; /** * @ignore */ ngOnChanges(changes: SimpleChanges): void; /** * Triggered when the radio is changed. * @param checked Should it be checked or not? */ change(checked: any): void; /** * Registers an onChange event. */ registerOnChange(fn: any): void; /** * Registers an onTouch event. */ registerOnTouched(fn: any): void; /** * @ignore */ writeValue(value: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration<ListItemRadioComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ListItemRadioComponent, "c8y-list-item-radio, c8y-li-radio", never, { "selected": { "alias": "selected"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onSelect": "onSelect"; }, never, ["*"], true, never>; } //# sourceMappingURL=list-item-radio.component.d.ts.map