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.
data attributes for form_dropdown
3 years ago
3 years ago
#1
3 years ago
#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
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 years ago
#3
Thank you for the challenge. Now I have to learn about pull requests. ?
3 years ago
#4
Ok, I think I figured that out proper.