Results 1 to 3 of 3

Thread: renderer in grid metadata.attr

  1. #1
    Ext User
    Join Date
    May 2008
    Posts
    20

    Default renderer in grid metadata.attr

    Dynamically for a Status trying to add
    metadata.attr = ' class="class1 class2"';

    as per the value in the renderer in Grid.

    The class1 and class2 both show Image that comes from background-image.

    The class2 image is a link.


    Can get this to work with direct HTML in renderer function, but what if I want to use metadata.attr.

    Tried metadata.css but that is on the DIV, the metadata.attr would be more appropriate.

    Also, if metadata.css used can display class1 image but not class2 image.

    The cell is dynamic and not same throughout the grid. That can be easily checked with the value passed in.


    Thx.

  2. #2
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    165

    Default

    Quote Originally Posted by drrs View Post
    both show Image that comes from background-image.
    Are width and height set in the css classes?
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

  3. #3
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    165

    Default

    I'm sorry, my question had nothing to do with the problem..
    Here's an explanation about rendering and metaData.
    In your case: metadata.css = 'class1 class2';
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •