Small Talks/2011/December/Zk Fancy ScrollBar
From Documentation
Contents |
Introduction
This article shows how to customize scroll bars to match up to the theme of your application across browsers.
ZKFancyBar is a wrapper over ZK components (Currently, only Listbox and Grid) which uses scrollbar.js and customizes the scrollbars.
Structure
css -------|- fancy.css (Modify if you need to)
js -------|- scroll.js (Modify if you need to)
|- prototype.js
|- livepipe.js
|- controls.js
|- effects.js
|- slider.js
|- scrollbar.js
images----|- nodata.png
WEB-INF
|_____src--->net.paxcel.zk.fscroll.FancyScrollDiv (Container div, encapsulates the structure needed by scroll.js)
|--->net.paxcel.zk.fscroll.FancyScrollListBox ( extends ListBox and creates a FancyScrollDiv around it)
|--->net.paxcel.zk.fscroll.FancyScrollGrid ( extends ListGrid and creates a FancyScrollDiv around it)
Uses
<listbox model="@{win$StarController}" use="net.paxcel.zk.fancy.FancyScrollListBox" width="98%></listbox>
How does it look like
The right side bluish track is our scroll handle.
Download
Download from ZKFancyBar
Comments
| Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |
TOC
December
ZK OSGi - Developing plug-in based applications with OSGi 