-
Notifications
You must be signed in to change notification settings - Fork 0
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
InputfieldRadios more flexibility for custom option attributes #432
Comments
Related from 2016: ryancramerdesign/ProcessWire#1820 Is it possible we can assign directly to the |
@ryancramerdesign Would this be something you can look into now that the master version has been released? It would really help make working with Hyperscript or Alpine.js much easier. |
I solved this for now using using this hook:
|
I use ProcessWire's form API to build forms as opposed to using regular HTML.
One annoying limitation is the inability to assign custom attributes directly to radio options. This is a common use case with tools like Alpine.js where I would want to throw a
x-model="something"
directly onto an<option>
. Right now, if I do this:... the x-model attribute will get added to the LABEL field of that option, NOT the option itself.
Is it possible to improve InputfieldRadios so we can add custom attributes directly to the option itself? Please. :)
The text was updated successfully, but these errors were encountered: