Panel"

From Documentation
m (Created page with '{{ZKDevelopersGuidePageHeader}} ==Panel== Panel is a container that has specific functionality and structural components that make it the perfect building block for application-…')
 
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ZKDevelopersGuidePageHeader}}
 
{{ZKDevelopersGuidePageHeader}}
  
==Panel==
+
Panel is a container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. Unlike <code>window</code>, Panel is not an independent ID space (by implementing IdSpace), so the ID of each child can be used throughout the panel.
Panel is a container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. Unlike <tt>window</tt>, Panel is not an independent ID space (by implementing IdSpace), so the ID of each child can be used throughout the panel.
 
  
 
===title, border, and frameable===
 
===title, border, and frameable===
A panel might have a title and a border. The title is specified by the <tt>title</tt> property. And Use <tt>border</tt> property to define the border style of panel.
+
A panel might have a title and a border. The title is specified by the <code>title</code> property. And Use <code>border</code> property to define the border style of panel.
 
<br/>
 
<br/>
 
[[Image:panel1.png]]
 
[[Image:panel1.png]]
Line 14: Line 13:
 
</panel>
 
</panel>
 
</source>
 
</source>
If you prefer a rounded layout, you can specify <tt>framable</tt> as <tt>true</tt>, the layout of panel would be rounded.
+
If you prefer a rounded layout, you can specify <code>framable</code> as <code>true</code>, the layout of panel would be rounded.
 
<br/>
 
<br/>
 
[[Image:panel1-2.png]]
 
[[Image:panel1-2.png]]
Line 25: Line 24:
  
 
===collapsible, and open===
 
===collapsible, and open===
The content of panel could be hidden using <tt>collapsible</tt> property.
+
The content of panel could be hidden using <code>collapsible</code> property.
 
<br/>
 
<br/>
 
[[Image:panel2.png]]
 
[[Image:panel2.png]]
Line 34: Line 33:
 
</panel>
 
</panel>
 
</source>
 
</source>
Along with <tt>collapsible</tt> property, you can set it to be opened or not using <tt>open</tt> property.
+
Along with <code>collapsible</code> property, you can set it to be opened or not using <code>open</code> property.
 
<br/>
 
<br/>
 
[[Image:panel3.png]]
 
[[Image:panel3.png]]
Line 45: Line 44:
  
 
===maximizable, and maximized===
 
===maximizable, and maximized===
You can make panel's body expansible by specify <tt>maximizable</tt> property to be <tt>true</tt>.
+
You can make panel's body expansible by specify <code>maximizable</code> property to be <code>true</code>.
 
<br/>
 
<br/>
 
[[Image:panel4.png]]
 
[[Image:panel4.png]]
Line 54: Line 53:
 
</panel>
 
</panel>
 
</source>
 
</source>
Whether to expand it can be configured using <tt>maximized</tt> property.
+
Whether to expand it can be configured using <code>maximized</code> property.
 
<br/>
 
<br/>
 
[[Image:panel5.png]]
 
[[Image:panel5.png]]
Line 65: Line 64:
  
 
===minimizable, minimized, and closable===
 
===minimizable, minimized, and closable===
You can allow the user to minimize the panel by specify <tt>minimizable</tt> property to be true.  
+
You can allow the user to minimize the panel by specify <code>minimizable</code> property to be true.  
 
<br/>
 
<br/>
 
[[Image:panel6.png]]
 
[[Image:panel6.png]]
Line 74: Line 73:
 
</panel>
 
</panel>
 
</source>
 
</source>
Or you can control whether to minimize it using <tt> minimized</tt> property.
+
Or you can control whether to minimize it using <code> minimized</code> property.
 
<source lang="xml">
 
<source lang="xml">
 
<panel height="100px" width="200px" border="normal"
 
<panel height="100px" width="200px" border="normal"
Line 82: Line 81:
 
</source>
 
</source>
 
<br/>
 
<br/>
Even, you can make it closable using <tt>closable</tt> property.
+
Even, you can make it closable using <code>closable</code> property.
 
<br/>
 
<br/>
 
[[Image:panel7.png]]
 
[[Image:panel7.png]]
Line 93: Line 92:
  
 
===floatable, and moveable===
 
===floatable, and moveable===
You can define whether to make the panel floatable to be displayed inline to its parent component using <tt>floatable</tt> property.
+
You can define whether to make the panel floatable to be displayed inline to its parent component using <code>floatable</code> property.
 
<br/>
 
<br/>
 
[[Image:panel8.png]]
 
[[Image:panel8.png]]
Line 102: Line 101:
 
</panel>
 
</panel>
 
</source>
 
</source>
Even, when the panel is floatable, you can make it draggable using <tt>movable</tt> property.
+
Even, when the panel is floatable, you can make it draggable using <code>movable</code> property.
 
<br/>
 
<br/>
 
[[Image:panel9.png]]
 
[[Image:panel9.png]]

Latest revision as of 10:44, 19 January 2022

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


Panel is a container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. Unlike window, Panel is not an independent ID space (by implementing IdSpace), so the ID of each child can be used throughout the panel.

title, border, and frameable

A panel might have a title and a border. The title is specified by the title property. And Use border property to define the border style of panel.
Panel1.png

<panel height="100px" width="200px" border="normal"
    title="Panel1" >    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

If you prefer a rounded layout, you can specify framable as true, the layout of panel would be rounded.
Panel1-2.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  framable="true">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

collapsible, and open

The content of panel could be hidden using collapsible property.
Panel2.png

<panel height="100px" width="200px" border="normal"
    title="Panel1" collapsible="true">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

Along with collapsible property, you can set it to be opened or not using open property.
Panel3.png

<panel height="100px" width="200px" border="normal"
    title="Panel1" collapsible="true" open="false">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

maximizable, and maximized

You can make panel's body expansible by specify maximizable property to be true.
Panel4.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  maximizable="true">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

Whether to expand it can be configured using maximized property.
Panel5.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  maximizable="true" maximized="false">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

minimizable, minimized, and closable

You can allow the user to minimize the panel by specify minimizable property to be true.
Panel6.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  minimizable="true" >    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

Or you can control whether to minimize it using minimized property.

<panel height="100px" width="200px" border="normal"
    title="Panel1"  minimizable="true" minimized="false">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>


Even, you can make it closable using closable property.
Panel7.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  closable="true">    
    <panelchildren>PanelContent1</panelchildren>    
</panel>

floatable, and moveable

You can define whether to make the panel floatable to be displayed inline to its parent component using floatable property.
Panel8.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  floatable="true">
    <panelchildren>PanelContent1</panelchildren>    
</panel>

Even, when the panel is floatable, you can make it draggable using movable property.
Panel9.png

<panel height="100px" width="200px" border="normal"
    title="Panel1"  floatable="true" movable="true">
    <panelchildren>PanelContent1</panelchildren>    
</panel>



Last Update : 2022/01/19

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