Frozen"

From Documentation
m ((via JWB))
(12 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
= Frozen =
 
= Frozen =
  
*Demonstration: [http://docs.zkoss.org/wiki/ZK_5:_Frozen_Column%2C_In-place_Editing_and_Rowspan#Live_Demo Frozen]
+
*Demonstration: [http://www.zkoss.org/zkdemo/grid/spreadsheet_functionalities Spreadsheet Functionalities]
 
*Java API: <javadoc>org.zkoss.zul.Frozen</javadoc>
 
*Java API: <javadoc>org.zkoss.zul.Frozen</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.mesh.Frozen</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.mesh.Frozen</javadoc>
 +
*Style Guide: [[ZK_Style_Guide/XUL_Component_Specification/Frozen | Frozen]]
  
 
= Employment/Purpose =
 
= Employment/Purpose =
  
A frozen component to represent a frozen column or row in grid, like MS Excel.  
+
A frozen component to represent frozen "columns" in a Grid, like MS Excel. Specify the <code>start</code> attribute to define the horizontal scroll starting position.
  
 
= Example =
 
= Example =
 +
 +
[[Image: ZKComRef_Frozen_Example.png | center]]
 +
 
<source lang="xml">
 
<source lang="xml">
<grid>
+
<grid width="600px">
<frozen style="background: #dfded8" columns="3">
+
<frozen columns="2" start="1"/>
...
+
<columns>
</frozen>
+
<column width="50px">ID</column>
 +
<column width="50px">Priority</column>
 +
<column width="50px">Status</column>
 +
<column width="150px">Summary</column>
 +
<column width="250px">Detail</column>
 +
<column width="100px">Group</column>
 +
<column width="50px">Assign</column>
 +
</columns>
 +
<rows>
 +
<row>
 +
<cell>0001</cell>
 +
<cell>1</cell>
 +
<cell>closed</cell>
 +
<cell>Fix login issue</cell>
 +
<cell>Login does not work at all</cell>
 +
<cell>Account</cell>
 +
<cell>Bob</cell>
 +
</row>
 +
<row>
 +
<cell>0002</cell>
 +
<cell>3</cell>
 +
<cell>open</cell>
 +
<cell>Button style broken</cell>
 +
<cell>Check main.css</cell>
 +
<cell>Styling</cell>
 +
<cell>Alice</cell>
 +
</row>
 +
<row>
 +
<cell>0003</cell>
 +
<cell>2</cell>
 +
<cell>open</cell>
 +
<cell>Client search result</cell>
 +
<cell>Search service returns incomplete result</cell>
 +
<cell>Service</cell>
 +
<cell>Bob</cell>
 +
</row>
 +
</rows>
 
</grid>
 
</grid>
 
</source>
 
</source>
  
=Supported events=
+
= Scroll to Hide Columns =
 +
By default, Grid will render extra space (larger width) after the last column. So that you can drag to hide all columns except the last one.
 +
[[File:hide-columns.png | center]]
 +
 
 +
=Supported Events=
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
Line 29: Line 73:
 
| None
 
| None
 
|}
 
|}
 +
*Inherited Supported Events: [[ZK_Component_Reference/Base_Components/XulElement#Supported_Events | XulElement]]
  
 
=Supported Children=
 
=Supported Children=
Line 34: Line 79:
 
  *ALL
 
  *ALL
  
=Use cases=
+
=Use Cases=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
Line 47: Line 92:
 
{{LastUpdated}}
 
{{LastUpdated}}
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-

Revision as of 14:09, 12 January 2022

Frozen

Employment/Purpose

A frozen component to represent frozen "columns" in a Grid, like MS Excel. Specify the start attribute to define the horizontal scroll starting position.

Example

ZKComRef Frozen Example.png
<grid width="600px">
	<frozen columns="2" start="1"/>
	<columns>
		<column width="50px">ID</column>
		<column width="50px">Priority</column>
		<column width="50px">Status</column>
		<column width="150px">Summary</column>
		<column width="250px">Detail</column>
		<column width="100px">Group</column>
		<column width="50px">Assign</column>
	</columns>
	<rows>
		<row>
			<cell>0001</cell>
			<cell>1</cell>
			<cell>closed</cell>
			<cell>Fix login issue</cell>
			<cell>Login does not work at all</cell>
			<cell>Account</cell>
			<cell>Bob</cell>
		</row>
		<row>
			<cell>0002</cell>
			<cell>3</cell>
			<cell>open</cell>
			<cell>Button style broken</cell>
			<cell>Check main.css</cell>
			<cell>Styling</cell>
			<cell>Alice</cell>
		</row>
		<row>
			<cell>0003</cell>
			<cell>2</cell>
			<cell>open</cell>
			<cell>Client search result</cell>
			<cell>Search service returns incomplete result</cell>
			<cell>Service</cell>
			<cell>Bob</cell>
		</row>
	</rows>
</grid>

Scroll to Hide Columns

By default, Grid will render extra space (larger width) after the last column. So that you can drag to hide all columns except the last one.

Hide-columns.png

Supported Events

Name
Event Type
None None

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.