[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 3:31 PM. Reason: [CLOSED]
  2. #2
    Hi Chris,

  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">
          <AfterRender Handler="this.setText(lastUpdated());" />
  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 Premium Help
    Replies: 1
    Last Post: Jun 18, 2012, 5:44 PM
  2. How Update control Ext: Label from Javascript
    By FAFNER in forum 1.x Help
    Replies: 2
    Last Post: Apr 07, 2011, 5:26 AM
  3. [CLOSED] Update label Icon over AjaxMethod
    By reinout.mechant@imprss.be in forum 1.x Premium Help
    Replies: 11
    Last Post: Jun 07, 2009, 3:48 AM
  4. [CLOSED] GridPanel + Icon and/or Label Icon
    By state in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 28, 2009, 3:03 AM
  5. [ADDED] [V0.8.0] Label with icon
    By jchau in forum Feature Requests
    Replies: 4
    Last Post: Feb 03, 2009, 8:16 PM

Posting Permissions