#1
I needed data attributes on my select options in order to update selection based display elements using javascript.

GPT-4 helped me by adding the needed functionality to the form dropdown helper. Would love it if this made it into the official engine so I don't have to track my customization.

#2
Hi cisnez,

Nice! and now an example of its use.

The controller 'Dropdown.php' created with the VS Code extension:


The view 'display.php':


The JavaScript 'custom.js'


and the HTML code generated by your updated dropdown() method


Now all you need to do is create a pull request and become a contributor to the Trongate Framework.


Cheers,
Si
#3
Thank you for the challenge. Now I have to learn about pull requests. ?
#4
Ok, I think I figured that out proper.