mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +01:00
Merge branch 'foris-form-docs' into 'dev'
Fixed ForisForm docstring. See merge request turris/reforis/foris-js!87
This commit is contained in:
commit
83409b0118
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user