UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

14 lines 612 B
/** * A React context that provides access to a SimpleFormIterator item meta (its index and the total number of items) and mutators (reorder and remove this remove). * Useful to create custom array input iterators. * @see {SimpleFormIterator} * @see {ArrayInput} */ export declare const SimpleFormIteratorItemContext: import("react").Context<SimpleFormIteratorItemContextValue | undefined>; export type SimpleFormIteratorItemContextValue = { index: number; total: number; remove: () => void; reOrder: (newIndex: number) => void; }; //# sourceMappingURL=SimpleFormIteratorItemContext.d.ts.map