kwikid-components
Version:
KwikID's Components Library
47 lines (46 loc) • 2.57 kB
TypeScript
import { AfterViewInit, OnInit } from "@angular/core";
import * as i0 from "@angular/core";
export declare class KwikIDDynamicViewContainerComponent implements OnInit, AfterViewInit {
config: any;
data: any;
layoutId: any;
constructor();
ngOnInit(): void;
ngAfterViewInit(): void;
/**
* Function to get and render all components in the specified element.
* @param {HTMLElement} element - The element to which the components will be appended.
* @param {Array} components - Array of components to be rendered.
* @param {Object} data - Data object used to populate components.
* @param {Object} config - Configuration object for dynamic view.
* @returns {HTMLElement} - The updated element with appended components.
*/
getComponents: (element: any, components: any, data: any, config: any) => any;
/**
* Function to append all components to a row.
* @param {HTMLElement} row - The row element to which the components will be appended.
* @param {Array} components - Array of components to be appended to the row.
* @param {Object} data - Data object used to populate components.
* @param {Object} config - Configuration object for dynamic view.
* @returns {HTMLElement} - The updated row element with appended components.
*/
getRowItems: (row: any, components: any, data: any, config: any) => any;
/**
* Function to configure and return a component or element.
* @param {Object} component - The component object to be configured.
* @param {Object} data - Data object used to populate components.
* @param {Object} config - Configuration object for dynamic view.
* @returns {HTMLElement} - The configured element.
*/
getComponent: (component: any, data: any, config: any) => Promise<any>;
/**
* Function to execute validation for a component.
* @param {Object} component - The component object to be validated.
* @param {Object} data - Data object used to populate components.
* @param {Object} config - Configuration object for dynamic view.
* @returns {Promise<HTMLElement>} - The promise with the updated element after validation.
*/
executeValidation: (component: any, data: any, config: any) => Promise<unknown>;
static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDDynamicViewContainerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDDynamicViewContainerComponent, "kwikid-dynamic-view-container", never, { "config": "config"; "data": "data"; }, {}, never, never>;
}