UNPKG

@talend/react-forms

Version:

React forms library based on json schema form.

27 lines (26 loc) 1.12 kB
/** * Define * - the displayed items from all items and filter criteria * - the toggleAll status from displayed items checked status * @param { Array } items All the items * @param { string } searchCriteria The filter criteria * @returns { Object } The items related state */ export function getItemsProps(items: any[], searchCriteria: string): Object; /** * Define the items from schema, and init the items related state * @param { Object } schema The merged schema * @param { Array } value the listView value * @param { string } searchCriteria The filter criteria * @param { function } onChange The toggle callback * @returns { Object } The items related state */ export function initItems(schema: Object, value: any[], searchCriteria: string, onChange: Function): Object; /** * Update the check status of the list items * @param { Array } items The listView items * @param { Array } value The listView value * @param { string } searchCriteria The filter criteria * @returns { Object } The items related state */ export function updateItems(items: any[], value: any[], searchCriteria: string): Object;