Announcement

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

    TileGrid Hilites

    Does the TileGrid support Hilites? I've been trying to get either the background of the tile to change or the text but have been unsuccessful. I'm trying something simple like this:

    Code:
            final TileGrid tileGrid = new TileGrid();
            tileGrid.setDataSource(DSConst.ElasticBeanstalk.DATASOURCE);
            tileGrid.setWidth100();
            tileGrid.setHeight100();
            tileGrid.setAutoFetchData(true);
            tileGrid.setInitialCriteria(new AdvancedCriteria(new Criterion(DSConst.ElasticBeanstalk.REGION, OperatorId.IN_SET, new String[] { "us-east-1" })));
    
            final Hilite hilite = new Hilite();
            final Criteria criteria = new Criteria();
            criteria.addCriteria(DSConst.ElasticBeanstalk.APPLICATION_NAME, "TITAN");
            hilite.setCriteria(criteria);
            hilite.setBackgroundColor("blue");
            hilite.setTextColor("blue");
            tileGrid.setHilites(new Hilite[] { hilite });
    
            tileGrid.draw();
    Is there something I'm missing to enable Hilites on the TileGrid?

    #2
    The methods were implemented on a base class because we do plan eventual multi-component, but right now the ListGrid is the only component that supports hilites. We'll clear this up in the docs to avoid further confusion.

    Comment


      #3
      Ok thanks.

      Comment

      Working...
      X