extjs는 패널의 html를 어떻게 조작합니까

1285 단어 ExtJsPanel
1. 패널의 html 값을 동적으로 수정하는 방법
Ext.getCmp(‘panel1’).body.update('<iframe scrolling="auto"
 frameborder="0" width="100%" height="100%" 
src="PagingGrid11.jsp"></iframe>
');

 2.기존 HTML을 패널의 body 요소로 사용하는 방법
속성, 요소의 ID 값
extjsAPI 쓰기
Specify an existing HTML element, or the id of an existing HTML element to use as the content for this component.
This config option is used to take an existing HTML element and place it in the layout element of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.
Notes:
The specified HTML element is appended to the layout element of the component after any configured HTML has been inserted, and so the document will not contain this element at the time the render event is fired.
The specified HTML element used will not participate in any layout scheme that the Component may use. It is just HTML. Layouts operate on child items.
Add either the x-hidden or the x-hide-display CSS class to prevent a brief flicker of the content before it is rendered to the panel.

좋은 웹페이지 즐겨찾기