Commit 83409b01 authored by Maciej Lenartowicz's avatar Maciej Lenartowicz

Merge branch 'foris-form-docs' into 'dev'

Fixed ForisForm docstring.

See merge request !87
parents 01fb8971 c1cd90df
Pipeline #59639 passed with stages
in 3 minutes and 28 seconds
......@@ -27,7 +27,7 @@ ForisForm.propTypes = {
ws: PropTypes.object,
/** Foris configuration object. See usage in main components. */
forisConfig: PropTypes.shape({
/** reForis Flask aplication API endpoint from `src/common/API.js`. */
/** reForis Flask application API endpoint from `src/common/API.js`. */
endpoint: PropTypes.string.isRequired,
/** `foris-controller` module name to be used via WebSockets.
* It can be use only with `ws` prop.
......@@ -38,7 +38,7 @@ ForisForm.propTypes = {
* */
wsAction: PropTypes.string,
}).isRequired,
/** Function to prepare data recived from the API before using in forms. */
/** Function to prepare data received from the API before using in forms. */
prepData: PropTypes.func,
/** Function to prepare data from form before submitting. */
prepDataToSubmit: PropTypes.func,
......@@ -50,7 +50,9 @@ ForisForm.propTypes = {
disabled: PropTypes.bool,
/** Optional override of form submit callback */
onSubmitOverridden: PropTypes.func,
/** Optional override of form submit callback */
/** Reference to actual form element (useful for programmatically submitting it).
* Pass the output of useRef hook to this prop.
*/
formReference: PropTypes.object,
/** reForis form components. */
children: PropTypes.node.isRequired,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment