Detail"

From Documentation
m ((via JWB))
 
(14 intermediate revisions by 7 users not shown)
Line 3: Line 3:
 
= Detail  =
 
= Detail  =
  
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#f6 Grid (Master detail)]  
+
*Demonstration: [http://www.zkoss.org/zkdemo/grid/master_detail Grid (Master detail)]  
 
*Java API: <javadoc>org.zkoss.zul.Detail</javadoc>
 
*Java API: <javadoc>org.zkoss.zul.Detail</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zkex.grid.Detail</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zkex.grid.Detail</javadoc>
 +
*Style Guide: [[ZK_Style_Guide/XUL_Component_Specification/Detail| Detail]]
 +
*{{ZK PE and EE}}
  
 
= Employment/Purpose =
 
= Employment/Purpose =
Line 26: Line 28:
 
<grid fixedLayout="true" width="600px">
 
<grid fixedLayout="true" width="600px">
 
<columns>
 
<columns>
<column width="25px" />
+
<column width="40px" />
 
<column>Product Name</column>
 
<column>Product Name</column>
 
<column>Price</column>
 
<column>Price</column>
Line 34: Line 36:
 
<row>
 
<row>
 
<detail>
 
<detail>
<hbox>
+
<hlayout>
 
<image width="200px" height="200px" src="/img/icon_update.png" />
 
<image width="200px" height="200px" src="/img/icon_update.png" />
<vbox>
+
<vlayout>
 
<label value="Item Specifics - Item Condition    " style="font-weight:bold;font-style: italic;" />
 
<label value="Item Specifics - Item Condition    " style="font-weight:bold;font-style: italic;" />
<hbox>
+
<hlayout>
 
<label value="Condition:" />
 
<label value="Condition:" />
 
<label value="Used" style="font-weight:bold;" />
 
<label value="Used" style="font-weight:bold;" />
</hbox>
+
</hlayout>
<hbox>
+
<hlayout>
 
<label value="Brand:" />
 
<label value="Brand:" />
 
<label value="Apple" style="font-weight:bold;" />
 
<label value="Apple" style="font-weight:bold;" />
</hbox>
+
</hlayout>
<hbox>
+
<hlayout>
 
<label value="Technology:" />
 
<label value="Technology:" />
 
<label value="DVI" style="font-weight:bold;" />
 
<label value="DVI" style="font-weight:bold;" />
</hbox>
+
</hlayout>
<hbox>
+
<hlayout>
 
<label value="Monitor Type:" />
 
<label value="Monitor Type:" />
 
<label value="LCD/Flat Panel" style="font-weight:bold;" />
 
<label value="LCD/Flat Panel" style="font-weight:bold;" />
</hbox>
+
</hlayout>
</vbox>
+
</vlayout>
</hbox>
+
</hlayout>
 
</detail>
 
</detail>
 
<label value="Apple 20-inch Aluminum Cinema Display M9177/A" />
 
<label value="Apple 20-inch Aluminum Cinema Display M9177/A" />
Line 63: Line 65:
 
</rows>
 
</rows>
 
</grid>
 
</grid>
</zk></source>
+
</zk>
 +
</source>
  
 +
=Supported Events=
  
  
=Supported events=
 
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
 +
 
|-
 
|-
| None
+
| <center><code>onOpen</code></center>
| None
+
| '''Event:''' <javadoc>org.zkoss.zk.ui.event.OpenEvent</javadoc>
 +
Denotes user has opened or closed a component. Note:
 +
 
 +
unlike <code>onClose</code>, this event is only a notification. The client sends this event after opening or closing the component.
 +
 
 +
It is useful to implement load-on-demand by listening to the <code>onOpen</code> event, and creating components when the first time the component is opened.
 +
 
 
|}
 
|}
 +
 +
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]]
  
 
=Supported Children=
 
=Supported Children=
Line 81: Line 93:
 
  *ALL
 
  *ALL
  
=Use cases=
+
=Use Cases=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
| 5.0+
+
| &nbsp;
 
| &nbsp;
 
| &nbsp;
 
| &nbsp;
 
| &nbsp;
Line 92: Line 104:
  
 
=Version History=
 
=Version History=
 +
{{LastUpdated}}
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.0.1
+
| &nbsp;
| 5/5/2010
+
| &nbsp;
| Initialization
+
| &nbsp;
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 10:38, 12 January 2022

Detail

Employment/Purpose

The detail component is used to display a detailed section where a master row and

multiple detail rows are on the same row.


Example

Detail.png

<?xml version="1.0" encoding="UTF-8"?>
<zk>
	Please open/close the +/- button, and the layout of this page shows
	properly.
	<grid fixedLayout="true" width="600px">
		<columns>
			<column width="40px" />
			<column>Product Name</column>
			<column>Price</column>
			<column>Item location</column>
		</columns>
		<rows>
			<row>
				<detail>
					<hlayout>
						<image width="200px" height="200px" src="/img/icon_update.png" />
						<vlayout>
							<label value="Item Specifics - Item Condition    " style="font-weight:bold;font-style: italic;" />
							<hlayout>
								<label value="Condition:" />
								<label value="Used" style="font-weight:bold;" />
							</hlayout>
							<hlayout>
								<label value="Brand:" />
								<label value="Apple" style="font-weight:bold;" />
							</hlayout>
							<hlayout>
								<label value="Technology:" />
								<label value="DVI" style="font-weight:bold;" />
							</hlayout>
							<hlayout>
								<label value="Monitor Type:" />
								<label value="LCD/Flat Panel" style="font-weight:bold;" />
							</hlayout>
						</vlayout>
					</hlayout>
				</detail>
				<label value="Apple 20-inch Aluminum Cinema Display M9177/A" />
				<label style="color:green;float:right;" value="US $202.50" />
				<label value="tulsa, ok, United States" />
			</row>
		</rows>
	</grid>
</zk>

Supported Events

Name
Event Type
onOpen
Event: OpenEvent

Denotes user has opened or closed a component. Note:

unlike onClose, this event is only a notification. The client sends this event after opening or closing the component.

It is useful to implement load-on-demand by listening to the onOpen event, and creating components when the first time the component is opened.

Supported Children

*ALL

Use Cases

Version Description Example Location
     

Version History

Last Update : 2022/01/12


Version Date Content
     



Last Update : 2022/01/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.