We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
value
GOV.UK Frontend has a new feature to set values in components. We should update the kit/docs (the checked function is covered in the tutorial)
checked
Currently the kit has a function called checked that achieves the same thing. Maybe we can retire it in favour of values
values
The text was updated successfully, but these errors were encountered:
Related proof of concept I put together previously – alphagov/govuk-prototype-kit#1316
I think all form components except date input could be extended in the same way to pre-populate values from the data object.
Sorry, something went wrong.
We still need checked if people write html instead of using nunjucks macros - possibly we can replace with raw nunjucks like
{{ 'checked' if data['fruit'] == 'apples' ] }}
not sure if you can write something similar for checkboxes (arrays)
joelanman
Successfully merging a pull request may close this issue.
Context
GOV.UK Frontend has a new feature to set values in components. We should update the kit/docs (the
checked
function is covered in the tutorial)Alternatives
Currently the kit has a function called
checked
that achieves the same thing. Maybe we can retire it in favour ofvalues
Done when
values
notchecked
checked
, for example a check in Manage PrototypeThe text was updated successfully, but these errors were encountered: