View Full Version : How to render HTML in a Panel or Container?
HoangThang
May 13, 2020, 3: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, 3: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!
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.