Results 1 to 3 of 3

Thread: extend Toolbar.TextItem class

  1. #1

    Default extend Toolbar.TextItem class

    Hi

    Can someone tell me what the last line means:

    var s = document.createElement("span");
    s.className = "ytb-text";
    s.innerHTML = t.text ? t.text : t;
    Thanks in advance

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608

    Default

    If t.text is declared use t.text else use t and assing it to the innerHTML

  3. #3

    Default

    Thanks,mdissel. It seems like very simple

Posting Permissions

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