UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

32 lines (31 loc) 1.65 kB
import { Highlightable } from "@angular/cdk/a11y"; import { ElementRef } from "@angular/core"; import { OverlayItemComponent } from "../../overlay/overlay-item/overlay-item.component"; import { IOption, OptionValueType } from "../../overlay/types"; import { IOptionedComponent } from "../types"; import * as i0 from "@angular/core"; /** * @ignore * Will be renamed in scope of the NUI-5797 */ export declare class SelectV2OptionComponent extends OverlayItemComponent implements Highlightable, IOption { element: ElementRef<HTMLElement>; /** Sets value */ value: OptionValueType; /** Datasource index. Used to track correct items for virtual scroll */ index: number; /** Used to pass context for the custom template */ displayValueContext: any; /** Whether the Option outfiltered */ outfiltered: boolean; /** Whether the Option selected */ get selected(): boolean | undefined; private select; constructor(parent: IOptionedComponent, element: ElementRef<HTMLElement>); /** Handles Mouse click */ onClick(event: UIEvent): void; /** Gets value displayed in the Option */ get viewValue(): string; static ɵfac: i0.ɵɵFactoryDeclaration<SelectV2OptionComponent, [{ optional: true; }, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<SelectV2OptionComponent, "nui-select-v2-option", never, { "value": { "alias": "value"; "required": false; }; "index": { "alias": "index"; "required": false; }; "displayValueContext": { "alias": "displayValueContext"; "required": false; }; "outfiltered": { "alias": "outfiltered"; "required": false; }; }, {}, never, ["*"], false, never>; }