PDA

View Full Version : How to render HTML in a Panel or Container?



HoangThang
May 13, 2020, 4:09 PM
How to render HTML in a Panel or Container same like old Ext.Net .Net Framework version. Thanks!

Example:


<ext:Panel>
<Content>
<div>Want to add HTML here</div>
</Content>
</ext:Panel>

fabricio.murta
May 13, 2020, 4:41 PM
Hello @HoangThang!

For now, you can use a generic/bare ext-component for that:



<ext-panel>
<items>
<ext-component html="<div>Want to add HTML here</div>" />
</items>
</ext-panel>


or just simply setting the html property of the Panel:


<ext-panel html="<div>Want to add HTML here</div>" />

This is useful for limited HTML code, but soon we should have better ways to imply proper HTML blocks in a form similar to <Content />.

Hope this helps!