How to render HTML in a Panel or Container?

  1. #1

    How to render HTML in a Panel or Container?

    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>
    Last edited by geoffrey.mcgill; May 14, 2020 at 5:36 AM.
  2. #2
    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!
    Last edited by geoffrey.mcgill; May 14, 2020 at 5:37 AM.

Similar Threads

  1. [CLOSED] DisplayField.Html does not render .Html value
    By geoffrey.mcgill in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2013, 1:26 PM
  2. [CLOSED] Panel html render problem
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 22, 2011, 1:49 PM
  3. html tags inside container
    By [WP]joju in forum 1.x Help
    Replies: 4
    Last Post: Nov 20, 2009, 2:39 AM
  4. Replies: 2
    Last Post: Feb 19, 2009, 2:02 PM
  5. Make Panel Render HTML
    By jarremw in forum 1.x Help
    Replies: 2
    Last Post: Feb 16, 2009, 6:55 PM

Posting Permissions