ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
15 lines • 630 B
TypeScript
/**
* A React context that provides access to a SimpleFormIterator data (the total number of items) and mutators (add, reorder and remove).
* Useful to create custom array input iterators.
* @see {SimpleFormIterator}
* @see {ArrayInput}
*/
export declare const SimpleFormIteratorContext: import("react").Context<SimpleFormIteratorContextValue | undefined>;
export type SimpleFormIteratorContextValue = {
add: (item?: any) => void;
remove: (index: number) => void;
reOrder: (index: number, newIndex: number) => void;
source: string;
total: number;
};
//# sourceMappingURL=SimpleFormIteratorContext.d.ts.map