[CLOSED] Label.setText HTML

  1. #1

    [CLOSED] Label.setText HTML

    I need set this HTML text to Label, into a Javascript function...

    I try set the label.html property.. did not work...

    I try set the label.setText('My <b>text</b> here', true) (in Sencha ExtJS 4.0 Docs, is written that the second parameter is HTML encoding)... did not work to.

    I'm probably not knowing consult the ExtJS Docs.
    When I need to use some ext.net control in javascript code, the properties and methods are described in ExtJS Docs? Exactly the same? Am I right in trying to resolve for myself?

    Thanks for any help?
    Last edited by Daniil; Jan 27, 2012 at 12:32 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You should pass "false" as the secomnd argument which means "do not encode". A value should not be encoded if you need apply an HTML string.

    Quote Originally Posted by supera View Post
    When I need to use some ext.net control in javascript code, the properties and methods are described in ExtJS Docs? Exactly the same? Am I right in trying to resolve for myself?
    Yes, you can rely on ExtJS API docs, we don't break it.

    We commonly extend the native ExtJS API (repeat myself, don't breaking existing).
  3. #3
    Thank you, Daniil... works fine.

Similar Threads

  1. [CLOSED] Html code to Ext:label
    By canbay in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 26, 2012, 1:08 PM
  2. Problem with set Html in Label
    By manhhoangxuan in forum 1.x Help
    Replies: 12
    Last Post: Mar 29, 2012, 10:32 PM
  3. Replies: 2
    Last Post: Nov 03, 2011, 5:24 PM
  4. [CLOSED] Label Html issue
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 19, 2010, 11:52 AM
  5. unescape label html
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Apr 15, 2010, 3:11 AM

Posting Permissions