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. |
sdirix
left a comment
There was a problem hiding this comment.
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.
| type={ | |
| appliedUiSchemaOptions.format ? appliedUiSchemaOptions.format : 'text' | |
| } | |
| type={appliedUiSchemaOptions.format === 'password' ? 'password' : 'text'} |
There was a problem hiding this comment.
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