Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any demo for this NPM? #72

Open
gaohongwei opened this issue Dec 9, 2021 · 1 comment
Open

Any demo for this NPM? #72

gaohongwei opened this issue Dec 9, 2021 · 1 comment

Comments

@gaohongwei
Copy link

gaohongwei commented Dec 9, 2021

Any demo for this NPM?
I could not figure the functionality and usage.

@Zoramite
Copy link
Member

Zoramite commented Dec 9, 2021

Hello @gaohongwei

There is an example page that shows how the selective edit library works. The basic premise is that you provide a set of data that you want to edit along with a configuration of the fields that you want to edit and how they should be displayed and any validation. Then the selective-edit creates the form for making the changes.

Its made to be extendable with custom field types so that you can use more than just the standard form fields. For example, you could have a field that validates against a list of existing values from an api call or has custom validation on the format of the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants