Silverstripe Version: 4.5.2
I have added a custom action button to a GridField row, as per the documentation: https://docs.silverstripe.org/en/4/developer_guides/forms/how_tos/create_a_gridfield_actionprovider/
This appears to be working fine, but I have 2 questions:
- how do I style the button? I can eg. use DBField within a GridField row to create an HTML styled button (green icon on left). Where and how do I apply this styling to the grey custom action button?
- how/where do I apply conditional logic to display the button? Eg. I’d like to only display the button over 3 days around the current date and hide it the rest of the time.