@rangertechnologies/ngnxt
Version:
This library was used for creating dymanic UI based on the input JSON/data
85 lines (84 loc) • 2.39 kB
TypeScript
import * as i0 from "@angular/core";
export declare class TemplateService {
templates: {
templateId: number;
templateName: string;
content: string;
elements: ({
type: string;
questionText: string;
style: {
showLabel: boolean;
};
size: number;
fieldsMeta?: undefined;
tableConfig?: undefined;
} | {
type: string;
questionText: string;
style: {
showLabel: boolean;
};
size?: undefined;
fieldsMeta?: undefined;
tableConfig?: undefined;
} | {
type: string;
questionText: string;
fieldsMeta: string;
tableConfig: {
isNosIndicator: boolean;
addInlineRecord: boolean;
isPagination: boolean;
};
style?: undefined;
size?: undefined;
})[];
}[];
unique_id: any;
book: any;
formElements: any[];
constructor();
getTemplates(): {
templateId: number;
templateName: string;
content: string;
elements: ({
type: string;
questionText: string;
style: {
showLabel: boolean;
};
size: number;
fieldsMeta?: undefined;
tableConfig?: undefined;
} | {
type: string;
questionText: string;
style: {
showLabel: boolean;
};
size?: undefined;
fieldsMeta?: undefined;
tableConfig?: undefined;
} | {
type: string;
questionText: string;
fieldsMeta: string;
tableConfig: {
isNosIndicator: boolean;
addInlineRecord: boolean;
isPagination: boolean;
};
style?: undefined;
size?: undefined;
})[];
}[];
initializeElementFromTemplate(templateElement: any, index: number): any;
private initializeOptions;
private initializeFieldsMeta;
download(): any;
private newBook;
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
}