Announcement

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

    #16
    by object attribute do you mean just a list of properties?

    Code:
    	tileProperties:{baseStyle:"cwAppPageBackground"},
    I tried the above code combined with the proper tileValueStyle but no luck. I don't see 'cwAppPageBackground' being applied anywhere.

    Code:
    isc.TileGrid.create({
        tileWidth:150,
        tileHeight:190,
        height:400,
        width:"100%",
        showAllRecords:true,
        data:animalData,
    	tileProperties:{baseStyle:"cwAppPageBackground"},
    	tileValueStyle: "cwAppPageLabel", 
        fields: [
            {name:"commonName"}
        ]            
    });
    I also tried just setting the field style and using tileValueStyle as 'cwAppPageBackground' and it still doesn't get used.

    Code:
    isc.TileGrid.create({
        tileWidth:150,
        tileHeight:190,
        height:400,
        width:"100%",
        showAllRecords:true,
        data:animalData,
    	tileValueStyle: "cwAppPageBackground", 
        fields: [
            {name:"commonName", getCellStyle: function (value, field, record, viewer) {return "cwAppPageLabel"}}
        ]            
    });

    Comment


      #17
      Yes, that's what we meant - this block of code that you posted works fine for us - we see both icons overlaid. It's possible that your browser is rendering before the images have been loaded but we don't see that here. Note also the use of an icon you didn't provide in the css.

      Code:
      isc.TileGrid.create({
          tileWidth:150,
          tileHeight:190,
          height:400,
          width:"100%",
          showAllRecords:true,
          data:animalData,
      	tileProperties:{baseStyle:"cwAppPageBackground"},
      	tileValueStyle: "cwAppPageLabel", 
          fields: [
              {name:"commonName"}
          ]            
      });

      Comment


        #18
        ugh. so sorry to waste your time. I was editing the .html file from a different directory than what I was loading. You're right, the last snippet works.

        Comment

        Working...
        X