@ngx-uk-frontend/core
Version:
Core utilities and shared functionality for ngx-uk-frontend libraries
28 lines (27 loc) • 1.33 kB
TypeScript
import { CommonFormInputDirective } from '@ngx-uk-frontend/core/form-utils';
import * as i0 from "@angular/core";
/**
* Core radio directive that provides common functionality
* for radio components across different design systems.
*
* This directive handles:
* - Form control integration
* - Basic radio configuration
* - Accessibility attributes
* - Common radio functionality
*/
export declare class RadioDirective {
readonly ngControl: import("@angular/forms").FormControlDirective | import("@angular/forms").FormControlName | import("@angular/forms").NgModel;
readonly commonFormInput: CommonFormInputDirective;
readonly small: import("@angular/core").InputSignal<boolean>;
readonly inline: import("@angular/core").InputSignal<boolean>;
/**
* Sets the selected value of the radio group.
* Only updates the form control if the value has changed.
*
* @param value The value to set for the radio group
*/
setValue(value: string): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RadioDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioDirective, "[libRadio]", never, { "small": { "alias": "small"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}