[CLOSED] Label: Update icon in javascript

  1. #1

    [CLOSED] Label: Update icon in javascript

    I must have a Friday brain freeze. How can I change the icon of ext:Label in javascript?
    Last edited by Daniil; Nov 22, 2012 at 2:31 PM. Reason: [CLOSED]
  2. #2
    Hi Chris,

    Example
    App.Label1.setIconCls("#Add")
  3. #3
    That is what I thought, but I am getting <HTMLLabelElement> has no method setIconCls. Below is how the label is created.
    <ext:Label runat="server" ID="UpdatedTime" ClientIDMode="Static" Padding="1" Icon="Time" StyleSpec="font-size: 9px; background-color: #FFFFB7;" Height="18px">
       <Listener>
          <AfterRender Handler="this.setText(lastUpdated());" />
       </Listener>
    </ext:Label>
  4. #4
    I guess you access the Label view "UpdatedTime", but have to via "App.UpdatedTime".

Similar Threads

  1. [CLOSED] change icon of a label from directmethod
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 18, 2012, 4:44 PM
  2. How Update control Ext: Label from Javascript
    By FAFNER in forum 1.x Help
    Replies: 2
    Last Post: Apr 07, 2011, 4:26 AM
  3. [CLOSED] Update label Icon over AjaxMethod
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 07, 2009, 2:48 AM
  4. [CLOSED] GridPanel + Icon and/or Label Icon
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2009, 2:03 AM

Posting Permissions