There is no Button Property Editor or Button Grid Property Editor.
When using the Grid on a page, the editor needs to include a "Call For Action" button within the text.
I thought of 2 options to solve this:
Create a Macro with several parameters to allow the editor to customize the button (Url, btn-primary, btn-error, etc.). Make this macro available in Grid.
Build a Grid Property Editor. However, I noticed that for Grid Property Editors, there is no way to include parameters to allow the editor to customize the property editor when inserting a button in the Grid cell.
Creating a macro would certainly do the trick and would be fairly easy to set up. I do think a custom Grid Editor might provide a better editing experience though. It also requires a bit more work :)
You can do pretty much everything with Grid editors that you can do with a normal property editor. The concepts are very similar and there is documentation on how to create custom Grid editors. I've created a quick example of how you could go about it here. It's a really basic example and the functionality can be greatly improved.
That's great Rune. I was reluctant about Grid Editor as I wanted the user to see the button rendered inside Grid. I thought only a Macro would do the job.
I will go through the link you sent me on GitHub, looks neat and what I was having in mind. I will see how a custom editor could be built and expand on that for other things.
Extend Grid with Button Property Editor
Hi,
There is no Button Property Editor or Button Grid Property Editor.
When using the Grid on a page, the editor needs to include a "Call For Action" button within the text.
I thought of 2 options to solve this:
Any idea on which way to go with? And why?
Thanks, Bilal
Hi Bilal
Creating a macro would certainly do the trick and would be fairly easy to set up. I do think a custom Grid Editor might provide a better editing experience though. It also requires a bit more work :)
You can do pretty much everything with Grid editors that you can do with a normal property editor. The concepts are very similar and there is documentation on how to create custom Grid editors. I've created a quick example of how you could go about it here. It's a really basic example and the functionality can be greatly improved.
All the best
Rune
That's great Rune. I was reluctant about Grid Editor as I wanted the user to see the button rendered inside Grid. I thought only a Macro would do the job.
I will go through the link you sent me on GitHub, looks neat and what I was having in mind. I will see how a custom editor could be built and expand on that for other things.
Thanks Bilal
is working on a reply...