ExtJS Dynamically creating components

Source: Internet
Author: User

J is the code that dynamically creates the DOM:

Or

Eval has a background organization code, the front desk

=======================

Dynamic creation of the ExtJS component:

Most of the time in the program you need to create compliant components in the background based on business logic, and then we have to set up the representation variables in the background.

The foreground page is created dynamically, and the component of the page is refreshed when it is created, otherwise it is not displayed.

A common approach:

Dolayout: Re-layout the component-that is, refresh

El: Gets the HTML elements of the component---component rendering will have these elements later

OWNERCT: Gets the container of the component------This method is important

Findbytype: Get the component of the development type

gettarget: Getting a Component object on an event

Autoel
Childels
Targetel
TPL & Data
RENDERTPL & RenderData
Basecls

  Ext.reg (' Remotecheckboxgroup ', Ext.ux.RemoteCheckboxGroup);//Register component

ExtJS Dynamically creating components

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.