[CLOSED] Label setHtml bug
Support,
here is a small bug.
load the test screen and you can see that we set an Icon for the Label.
as per the docs, setHtml "Sets the value of html" and should NOT affect icon. However, in this case, when we setHtml, the ICON is wiped out.
now a simple workaround is to use setText (blah, false) but this should be fixed.
thanks,
/Z
Code:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Test</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server">
</ext:ResourceManager>
<h1>Label Test</h1>
<ext:Label ID="test" runat="server" Icon="Phone" Html="test stuff" MarginSpec="0 0 0 10"/>
<ext:Button runat="server" Text="settxt" Handler="App.test.setText('<b>234</b>');" />
<ext:Button runat="server" Text="settxt1" Handler="App.test.setText('<b>234</b>', false);" />
<ext:Button runat="server" Text="sethtml" Handler="App.test.setHtml('<b>234</b>');" />
<ext:Button runat="server" Text="hide" Handler="App.test.hide();" />
<ext:Button runat="server" Text="show" Handler="App.test.show();" />
</form>
</body>
</html>