rjsf-team/react-jsonschema-form

<title> disable SUBMIT button when no changes AND handle units of measure

Open

#4,098 建立於 2024年2月21日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (13,175 star) (2,136 fork)batch import
featurehelp wanted

描述

Prerequisites

What theme are you using?

mui

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

disable submit when no changes

this could be a global prop on the Form, that upon first submit, the form memorizes the formData upon submit and disables submit button if the formData comes back to the last submitted value

--> related feature: add a RESET button to reset to the latest submtited value (or default initial values in case no submission yet)

UoMs

it would be nice if the json schema could be extended to support unit of measure for the single params, this could be particularly helpful for currency values, but not only that.

in particular in MUI would be nice to use a "endAdornment" in the input field that includes the unit of measure.

--> related feature: add uspport for currency formatting widget using 2 decimal places and tousands comma/point separator

Describe alternatives you've considered

No response

貢獻者指南