Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    You can wrap the tile HTML into a <div> element including title.

    @Override
    protected String getTileHTML(Record record) {
    String tileHTML = super.getTileHTML(record);
    String title = record.getAttribute("title");
    return "<div title=\"" + title + "\">" + tileHTML + "<div/>";
    }

    This will show a tooltip when hovering over the tile. The attribute title can be set for the record as follows:

    TileRecord tile = new TileRecord();
    tile.setAttribute("title", "my tooltip");

    Comment


      #17
      Very helpful.
      Thanks, zamomin.

      Comment

      Working...
      X