S, Mohamed Raffi (Mohamed) schrieb:
> Hi,
> If I have special characters in the ListItem, it is not displaying
> properly.
>
> For the below value, it is not displaying the content within the <> and
> it is displaying a textbox in between the ListItem.
> "commandName -n <Admin Name> -a <New Admin Name> -np <New Password>
> -h|-? <Display Options>"
>
> Is their a way to set any property in the ListItem/Widget to display all
> the characters as it is?
>
> Thanks,
> Raffi
>
>
Hi Raffi,
the default mode for labels is "auto", which meant the label will try to
detect, whether the value is plain text or html. The '<' charater is
interpreted as HTML tag and thus the mode is switched to HTML. You can
ovverride the label mode by setting it directly. In your case you can
use the following call:
listItem.getLabel().setMode("text");
<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.basic.Label~mode>
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger,
Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel