UNPKG

@formio/core

Version:

The core Form.io renderering framework.

37 lines (36 loc) 1.17 kB
/** * Iterate through each component within a form. * * @param {Object} components * The components to iterate. * @param {Function} fn * The iteration function to invoke for each component. * @param {Boolean} includeAll * Whether or not to include layout components. * @param {String} path * The current data path of the element. Example: data.user.firstName * @param {Object} parent * The parent object. */ export declare function eachComponent(components: any, fn: any, includeAll?: boolean, path?: string, parent?: any): void; /** * Flatten the form components for data manipulation. * * @param {Object} components * The components to iterate. * @param {Boolean} includeAll * Whether or not to include layout components. * * @returns {Object} * The flattened components map. */ export declare function flattenComponents(components: any, includeAll: boolean): any; export declare function guid(): string; /** * Make a filename guaranteed to be unique. * @param name * @param template * @param evalContext * @returns {string} */ export declare function uniqueName(name: string, template?: string, evalContext?: any): string;