Set Icon ImageCommand

  1. #1

    Set Icon ImageCommand

    Hi!
    How to do set the ICON (ImageCommand) in JavaScript?
     var prepareIcon = function (grid, command, record, row, col, value) {
                //debugger;
    
                if (value == 'Pessoal') {
                    #{Icone}.icon = 'BookRed'       ??????
                else
                    #{Icone}.icon = 'BooKOpen'     ?????
              }
     <ext:Column ColumnID="AgdTipo" Header="Hora" Width="65" DataIndex="AgdHora" Sortable="false" Align="Right" RightCommandAlign="false" >
                                        <Renderer Fn="Negrito" />   
                                        <Commands>
                                            <ext:ImageCommand CommandName="Icone" ></ext:ImageCommand>                                        
                                        </Commands>  
                                        <PrepareCommand Fn="prepare" />                                                                    
                                    </ext:Column>
    Maia
    Coolite 1.0
    Last edited by Maia; Sep 06, 2010 at 2:39 PM.
  2. #2
    Hi!
    var prepareIcon = function (grid, command, record, row, col, value) {
    //debugger;

    if (record.data.AgdTipo == 'Pessoal') {
    command.iconCls = 'icon-Bookred'
    else
    command.iconCls = 'icon-bookopen'

    }


    Maia.
    Coolite 1.0
    Last edited by Maia; Sep 06, 2010 at 3:21 PM.

Similar Threads

  1. Replies: 5
    Last Post: Jul 29, 2016, 7:54 AM
  2. ImageCommand Icon
    By AlexMaslakov in forum 1.x Help
    Replies: 2
    Last Post: Aug 26, 2011, 9:54 AM
  3. ImageCommand Icon not showing up
    By RPIRES in forum 1.x Help
    Replies: 5
    Last Post: Jun 21, 2010, 5:28 PM
  4. [CLOSED] [1.0] ImageCommand Icon
    By state in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 01, 2010, 6:36 PM
  5. Imagecommand IE6
    By dayanat in forum 1.x Help
    Replies: 3
    Last Post: Jun 25, 2009, 9:51 AM

Posting Permissions