Function ctxDispatchToArrayControlProps
- ctxDispatchToArrayControlProps(dispatch): {
addItem(path, value): (() => void);
handleChange(path, value): void;
moveDown?(path, toMove): (() => void);
moveUp?(path, toMove): (() => void);
removeItems?(path, toDelete): (() => void);
} Parameters
- dispatch: Dispatch<unknown>
Returns {
addItem(path, value): (() => void);
handleChange(path, value): void;
moveDown?(path, toMove): (() => void);
moveUp?(path, toMove): (() => void);
removeItems?(path, toDelete): (() => void);
}
addItem:function
- addItem(path, value): (() => void)
Returns (() => void)
handleChange:function
- handleChange(path, value): void
Returns void
moveDown?:function
- moveDown(path, toMove): (() => void)
Parameters
- path: string
- toMove: number
Returns (() => void)
moveUp?:function
- moveUp(path, toMove): (() => void)
Parameters
- path: string
- toMove: number
Returns (() => void)
removeItems?:function
- removeItems(path, toDelete): (() => void)
Parameters
- path: string
- toDelete: number[]
Returns (() => void)
Update handler that emits a data change