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
Make addOptions extendible or hookable. #738
Comments
I'm not sure that I understand, because addOption() already accepts user defined attributes? For instance, when I'm rendering asmSelects, I often add |
Ryan, When an application is in control of adding options then you are, of course, totally correct and the additional attributes can be added via application code. However, in the situations referred to in the links above, it's when the I think this could be done by adding a hookable method to InputfieldSelect and having
By default this would leave the attributes for each option unchanged but would allow the application to hook the method to add whatever attributes it needs. |
Hi Ryan, This came up again recently in the forum (will post a link when I re-find it.) Would be great if you would reconsider adding it to the next release. |
Moved to the new repository, here. Closing this here. |
It would be nice to be able to extend the html options in selects with additional attributes in certain situations. I've posted one possible way to do this here. My solution focused purely on extending the attributes as options are added to a multiple select, but there might be a case for making the entire addOptions() method hookable in InputfieldSelect.
The text was updated successfully, but these errors were encountered: