There are 2 ways I can see this can de devised at the moment:
- Implement a
rtb_image element
- Enable any
rtb_element to use background-image
The 1st solution is less flexible but more robust. If you want to create a button with an icon you would have to embed an image widget inside it.
The 2nd solution makes it easier for the developer to draw his widget, so that if he wants a simple image he just needs to create a container and specify it's background image, ditto if he wants to implement an icon button. However this solution requires a way to specify the css id or class of the widget, which so far seems unavailable. It also makes it harder for an elegant implementation.
There are 2 ways I can see this can de devised at the moment:
rtb_imageelementrtb_elementto usebackground-imageThe 1st solution is less flexible but more robust. If you want to create a button with an icon you would have to embed an image widget inside it.
The 2nd solution makes it easier for the developer to draw his widget, so that if he wants a simple image he just needs to create a container and specify it's background image, ditto if he wants to implement an icon button. However this solution requires a way to specify the css id or class of the widget, which so far seems unavailable. It also makes it harder for an elegant implementation.