@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
69 lines (68 loc) • 2.41 kB
TypeScript
import { TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Defines a generic option for control types that display multiple options.
* These include, radio, checklist, multiselect, select, etc...
* The current implementation is pretty basic, but could be extended to support a variety of features
*/
export declare class FormFieldOptionComponent {
get resolvedTooltipTemplate(): TemplateRef<any>;
get resolvedTitle(): string;
/**
* Show info icon and tooltip information?
*/
get showInfoBubble(): boolean;
/**
* The id of this option used for UI test automation.
*/
utaId: string;
/**
* The value of this option.
*/
value: any;
/**
* The label of this option.
*/
label: string;
/**
* The description of this option.
*/
description: string;
/**
* Indicates if this option is disabled.
*/
disabled: boolean;
/**
* Indicates if this option is hidden.
*/
hidden: boolean;
private allTemplates;
private defaultSubFormTemplate;
/**
* Indicates if this option is selected
*/
isSelected: boolean;
tooltip?: string;
/**
* If provided, renders a custom tooltip for this field
*/
tooltipTemplate: TemplateRef<any>;
/**
* Provides binding context for the tooltip
*/
tooltipContext: any;
/**
* The template that's displayed for the option. Intended use is to define how option should look like in 'tile' radio group.
*/
get displayTemplate(): TemplateRef<any>;
/**
* The template ref of the option's subform. The way this template ref is used varies form control to control
*/
get subFormTemplate(): TemplateRef<any>;
/**
* Converts this instance to its string representation
*/
toString(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldOptionComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldOptionComponent, "sme-option", never, { "utaId": "utaId"; "value": "value"; "label": "label"; "description": "description"; "disabled": "disabled"; "hidden": "hidden"; "tooltip": "tooltip"; "tooltipTemplate": "tooltipTemplate"; "tooltipContext": "tooltipContext"; }, {}, ["defaultSubFormTemplate", "allTemplates"], never, false, never>;
}