-
Notifications
You must be signed in to change notification settings - Fork 380
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
Vanilla TextCell password #2249
Vanilla TextCell password #2249
Conversation
For vanilla-renderers TextCell, use "type" option to select an alternative HTML5 input type such as "email" or "password"
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for the contribution ❤️
In the React Material UI renderers we already support format: 'password'
as the indicator to render a password field. Would this work for you too? I would prefer to be consistent between renderer sets.
Sounds great, changed to |
type={ | ||
appliedUiSchemaOptions.format ? appliedUiSchemaOptions.format : 'text' | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type={ | |
appliedUiSchemaOptions.format ? appliedUiSchemaOptions.format : 'text' | |
} | |
type={appliedUiSchemaOptions.format === 'password' ? 'password' : 'text'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer only passing through the password as in React Material. Other types might be incompatible. I would have applied the change myself but maintainer editing was turned off for this PR
Closed in favor of #2254. Thanks for the contribution ❤️ |
Thanks @sdirix ! |
The input type for a TextCell in the vanilla-renderers was 'text' and could not be changed.
This change keeps the default 'text' type but allows the type to be changed via an option "type"
"options": { "format": "password" }
See also:
https://jsonforms.discourse.group/t/input-type-with-vanilla-renderers/272