@ngx-uk-frontend/core
Version:
Core utilities and shared functionality for ngx-uk-frontend libraries
30 lines (29 loc) • 1.38 kB
TypeScript
import { CommonFormInputDirective } from '@ngx-uk-frontend/core/form-utils';
import * as i0 from "@angular/core";
/**
* Interface defining an option in the select dropdown.
*/
export interface SelectOption {
/** The displayed text for the option */
label: string;
/** The value that will be submitted when the option is selected */
value: string;
}
/**
* Core select directive that provides common functionality
* for select components across different design systems.
*
* This directive handles:
* - Form control integration
* - Basic select configuration
* - Accessibility attributes
* - Common select functionality
*/
export declare class SelectDirective {
readonly ngControl: import("@angular/forms").FormControlDirective | import("@angular/forms").FormControlName | import("@angular/forms").NgModel;
readonly commonFormInput: CommonFormInputDirective;
readonly options: import("@angular/core").InputSignal<SelectOption[]>;
readonly disabled: import("@angular/core").InputSignal<boolean>;
static ɵfac: i0.ɵɵFactoryDeclaration<SelectDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective, "[libSelect]", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
}