UNPKG

@doku-dev/doku-fragment

Version:

A new Angular UI library that moving away from Bootstrap and built from scratch.

43 lines (42 loc) 1.61 kB
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { ReplaySubject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class DokuRadioGroup implements ControlValueAccessor, AfterContentInit, OnDestroy, OnChanges { /** * Name of the radio button group. * All radio buttons inside this group will use this name. * @default 'd-radio-group-[nextId]' */ name: string; /** * Whether the radio group is disabled. * If `true`, all radio buttons inside this group will be disabled. * @default false */ disabled: boolean; /** * Value of the checked radio button. * @default '' */ value: string; /** * Event emitted when the value changes. */ valueChange: EventEmitter<string>; private radios?; protected _notifyChanges$: ReplaySubject<unknown>; private destroy$; ngOnChanges(): void; ngAfterContentInit(): void; ngOnDestroy(): void; onChange?: (_: any) => void; onTouched?: () => void; writeValue(value: string): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; private injectRadios; static ɵfac: i0.ɵɵFactoryDeclaration<DokuRadioGroup, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DokuRadioGroup, "doku-radio-group", ["dokuRadioGroup"], { "name": "name"; "disabled": "disabled"; "value": "value"; }, { "valueChange": "valueChange"; }, ["radios"], ["doku-radio"], true>; }