Idspace
Idspace
- Demonstration: N/A
- Java API: org.zkoss.zul.Idspace
- JavaScript API:
zul.wgt.Idspace
Employment/Purpose
Idspace
is just like a
Div but implements
the ID space, all
descendant components of Idspace (including the Idspace itself) form an
independent ID space. Thus, you could use an idspace as the topmost
component to group components. This way developers only need to maintain
the uniqueness of each subset separately.
since 8.0
To group components without rendering a Div, Idspace
provides “nodom”
mold. It would render no-dom widget in client-side. It only renders
comment nodes for positioning.
Notice that it’s not recommended to use hflex/vflex in the children of nodom element.
Example
<idspace>
<window border="normal">
<button id="btn" label="button" />
</window>
<div>
<button id="btn" label="button" />
</div>
</idspace>
Supported Events
Name |
Event Type |
---|---|
None |
None |
- Inherited Supported Events: XulElement
Supported Children
*ALL
Use Cases
Version | Description | Example Location |
---|---|---|
Version History
Version | Date | Content |
---|---|---|