Skip to content

[RFC] Provide a way to load images #4

@badosu

Description

@badosu

There are 2 ways I can see this can de devised at the moment:

  1. Implement a rtb_image element
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions