@acrodata/gui
Version:
JSON powered GUI for configurable panels.
29 lines (28 loc) • 1.34 kB
TypeScript
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { MtxSelect } from '@ng-matero/extensions/select';
import { GuiBasicValue, GuiControl } from '../interface';
import * as i0 from "@angular/core";
export declare class GuiCombobox implements ControlValueAccessor, AfterViewInit {
private cdr;
mtxSelect: MtxSelect;
config: Partial<GuiControl>;
disabled: boolean;
appendTo: string;
value: GuiBasicValue | GuiBasicValue[];
private onChange;
private onTouched;
constructor(cdr: ChangeDetectorRef);
ngAfterViewInit(): void;
writeValue(value: GuiBasicValue | GuiBasicValue[]): void;
registerOnChange(fn: (value: GuiBasicValue | GuiBasicValue[]) => void): void;
registerOnTouched(fn: () => void): void;
setDisabledState(isDisabled: boolean): void;
onValueChange(): void;
addTagFn(label: string): {
label: string;
value: string;
};
static ɵfac: i0.ɵɵFactoryDeclaration<GuiCombobox, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GuiCombobox, "gui-combobox", never, { "config": { "alias": "config"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; }, {}, never, never, true, never>;
}