Open Toutouwai opened 1 week ago
It would also be good to be able to add custom data attributes to the buttons - more important than classes actually, because if custom data attributes were possible we could always target icons via data attribute in CSS and JS.
Short description of the enhancement
There are JS and PHP functions for adding Inputfield header action buttons, most recently mentioned in this announcement: https://processwire.com/talk/topic/30226-weekly-update-%E2%80%93%C2%A019-july-2024/
This request is to add an option that allows a custom class to be added to an action button (icon), so that it can be targeted in custom CSS and JS.
So that you could do something like this:
...and get markup like this...