Closed vbarcellos closed 4 years ago
Proposed change on Form propTypes: From submitLabel: PropTypes.string, to submitLabel: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
submitLabel: PropTypes.string,
submitLabel: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
Motive would be to allow for submit (and cancel) buttons to be a little more customizable:
Example of an implemented code:
submitLabel={ <React.Fragment> <FontAwesomeIcon icon={faFileExcel} fixedWidth /> Export </React.Fragment> }
Turn out I can do this using customActions on my form. Closing issue.
Proposed change on Form propTypes: From
submitLabel: PropTypes.string,
tosubmitLabel: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
Motive would be to allow for submit (and cancel) buttons to be a little more customizable:
Example of an implemented code: