xui
Version:
xUI Components for Angular
29 lines (28 loc) • 1.52 kB
TypeScript
import { ChangeDetectorRef } from '@angular/core';
import { RadioColor, RadioGroupAccessor, RadioItem, RadioValue } from './radio.types';
import { Subject } from 'rxjs';
import { BooleanInput } from '@angular/cdk/coercion';
import { ControlValueAccessor, NgControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class RadioGroupComponent implements RadioGroupAccessor, ControlValueAccessor {
private cdr;
control?: NgControl | undefined;
static ngAcceptInputType_disabled: BooleanInput;
private onChange?;
private onTouched?;
private _value;
onChange$: Subject<unknown>;
disabled: boolean;
color: RadioColor;
items?: RadioItem[];
get value(): RadioValue;
set value(v: RadioValue);
constructor(cdr: ChangeDetectorRef, control?: NgControl | undefined);
ngOnInit(): void;
writeValue(source: RadioValue): void;
registerOnChange(onChange: (source: RadioValue) => void): void;
registerOnTouched(onTouched: () => void): void;
setDisabledState(isDisabled: boolean): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, [null, { optional: true; self: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "xui-radio-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "items": { "alias": "items"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["xui-radio"], false, never>;
}