In general, when we develop the website with zk, we divide webpage into header, body and footer with borderlayout. Sometimes we need the layout component which is easier to effectively use the space of a whole pagelayout. It should be columnlayout. Unlike the borderlayout, when the height of content is larger than the default height, then the vertical scrollbar should appear on the right side of the browser, not the content.
Suppose we want to create an online shopping website where user can read the news about latest items and can be easier to browse various kinds of items. Finally, we need the function which can show statistics of online shopper.
Following figure shows the structure and how the columnlayout is placed on the screen. This webpage use columnlayout as body part.
New Page
Shop Page
Stats Page
layout¡¦s code can be simplified as follows.
<vlayout>
<div sclass="header">...</div>
<columnlayout sclass="body">
<columnchildren sclass="sidebar">...</columnchildren>
<columnchildren sclass="content">...</columnchildren>
</columnlayout>
<div sclass="footer">...</div>
</vlayout>
know more about zkee
Source: https://github.com/huangnoah/zkstore
Reference:
http://books.zkoss.org/wiki/Small_Talks/2008/June/Using_Columnlayout_Component http://books.zkoss.org/wiki/ZK_Component_Reference/Layouts/Columnlayout
Copyright 2013 Potix Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.