Editor
Extends:
React.Component → Editor
Editor component has theese props:
validator- required validator interface{ validate: (data, ctx) => Promise, validateProp: (name, value, ctx, data) => Promise }updateErrorMessage- default error message, when update failsloadingErrorMessage- default error message, when loading fails
Not required, when running inside the {TableEditor}
id- identifier of item to editdata- data to edit (if provided, data are not loaded from resource)resource- API url or {AjaxResource} interfacet- translator functionmodalTitle- boolean or string, which shows editor as ModalonSubmitDidFinish- success callback after submitonSubmitDidFail- error callback after submit