@rangertechnologies/ngnxt
Version:
This library was used for creating dymanic UI based on the input JSON/data
47 lines (46 loc) • 2.53 kB
TypeScript
import { OnInit, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
import { Subscription } from 'rxjs';
import { ChangeService } from '../../services/change.service';
import { I18nService } from '../../i18n.service';
import { DataService } from '../../services/data.service';
import * as i0 from "@angular/core";
export declare class CustomDropdownComponent implements OnInit {
private changeService;
private dataService;
i18nService: I18nService;
options: any[];
placeholder: string;
apiMeta: string;
selectedValue: string;
progressBar: boolean;
id: string;
readOnly: boolean;
errorMessage: string;
error: any;
fromShengel: boolean;
question: any;
referenceField: string;
token: string;
mode: 'view' | 'edit' | 'print';
valueChange: EventEmitter<any>;
dropdownWrapper: ElementRef;
invalidFieldIds: string[];
constructor(changeService: ChangeService, dataService: DataService, i18nService: I18nService);
labelField: string;
valueField: string;
subscription: Subscription;
uniqueKey: string;
apiObj: any;
showOptions: boolean;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
getOptions(): void;
selectChange(event: any): void;
toggle(): void;
onDocumentClick(event: MouseEvent): void;
clearSelection(): void;
removeCharacters(questionText: string): string;
inputValue(event: any, ques: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDropdownComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CustomDropdownComponent, "app-custom-dropdown", never, { "options": { "alias": "options"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "progressBar": { "alias": "progressBar"; "required": false; }; "id": { "alias": "id"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "error": { "alias": "error"; "required": false; }; "fromShengel": { "alias": "fromShengel"; "required": false; }; "question": { "alias": "question"; "required": false; }; "referenceField": { "alias": "referenceField"; "required": false; }; "token": { "alias": "token"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
}