New Features of ZK 8.6.0"

From Documentation
Line 27: Line 27:
 
</div>
 
</div>
  
= Refresh Theme without Change - Compact Theme =
+
 
 +
= Refresh Your Theme without a Change - Compact Theme =
 
{{ZK All}}
 
{{ZK All}}
The new default theme iceblue is great. But we also hear the voice from users, so we now build a compact theme to let you refresh your application's looking without modification from the previous default theme '''breeze'''. It has similar font size, padding, and margin to prevent from breaking your existing system's layout with breeze.
+
The new default theme iceblue is great. But we also hear the voice from users, so we now build a compact theme to let you refresh your application's looking without modification from the previous default theme '''breeze'''. It has similar font size, padding, and margin to prevent from breaking your existing system's layout with breeze. All themes of the [https://www.zkoss.org/product/zkthemepack| theme pack] has their corresponding compact one.
  
 
[[Image:compact-theme.png | center | 900px]]
 
[[Image:compact-theme.png | center | 900px]]
Line 57: Line 58:
 
<!-- http://tracker.zkoss.org/browse/ZK-3961 -->
 
<!-- http://tracker.zkoss.org/browse/ZK-3961 -->
 
{{ZK All}}
 
{{ZK All}}
Set the mold attribute with <tt>knob</tt> will enable knob slider. So the slider can act as a normal knob. You can controll by wheel, drag, click and enter a value to the textbox in the center.
+
Set <tt>mold</tt> attribute with <tt>knob</tt> will enable knob slider. So the slider can act as a normal knob. You can controll by a mouse wheel, dragging, clicking and entering a value to the textbox in the center.
  
 
[[File:knob-slider.gif | center]]
 
[[File:knob-slider.gif | center]]
Line 95: Line 96:
  
  
= [[ZK_Component_Reference/Multimedia_and_Miscellaneous/Camera| Take a Photo - Camera]] =  
+
= [[ZK_Component_Reference/Multimedia_and_Miscellaneous/Camera| Smile! - Camera]] =  
 
<!-- http://tracker.zkoss.org/browse/ZK-3930 -->
 
<!-- http://tracker.zkoss.org/browse/ZK-3930 -->
 
{{ZK EE}}
 
{{ZK EE}}
 +
Developers can control the Camera component to take a snapshot with the camera that a browser can access.
  
 
[[File:camera-snapshot.gif | center]]
 
[[File:camera-snapshot.gif | center]]
 +
  
 
= [[ZK_Component_Reference/Multimedia_and_Miscellaneous/Camera|Record a Clip]] =
 
= [[ZK_Component_Reference/Multimedia_and_Miscellaneous/Camera|Record a Clip]] =
 
{{ZK EE}}
 
{{ZK EE}}
 +
The Camera component can also record a clip with the camera that a browser can access.
  
 
[[File:camera-record.gif | center]]
 
[[File:camera-record.gif | center]]
Line 109: Line 113:
 
= [[ZK%20Component%20Reference/Layouts/Organigram| Show Your Organization - Organigram]] =  
 
= [[ZK%20Component%20Reference/Layouts/Organigram| Show Your Organization - Organigram]] =  
 
{{ZK EE}}
 
{{ZK EE}}
 
+
The component can render a organizational diagram upon a <tt>TreeModel</tt>.
The component can render a organizational chart upon a <tt>TreeModel</tt>.
 
  
 
[[Image:organigram.gif | center]]
 
[[Image:organigram.gif | center]]
Line 121: Line 124:
  
 
[[ZK_Component_Reference/Input/Signature| Signature]] supports singature pad on the desktop and mobile browsers. Developers can setup pen size, pen color, and background color etc. Users can undo, save and clear their signatres.
 
[[ZK_Component_Reference/Input/Signature| Signature]] supports singature pad on the desktop and mobile browsers. Developers can setup pen size, pen color, and background color etc. Users can undo, save and clear their signatres.
 +
  
 
= [[ZK%20Component%20Reference/Essential%20Components/Rating| Give Me a Rating]] =
 
= [[ZK%20Component%20Reference/Essential%20Components/Rating| Give Me a Rating]] =
Line 134: Line 138:
  
 
[[File:cropper.gif | center]]
 
[[File:cropper.gif | center]]
 +
  
 
= [[ZK%20Component%20Reference/Multimedia%20and%20Miscellaneous/Barcode| Display a Barcode]] =
 
= [[ZK%20Component%20Reference/Multimedia%20and%20Miscellaneous/Barcode| Display a Barcode]] =
Line 175: Line 180:
 
menu.getMenupopup().setActive(i);
 
menu.getMenupopup().setActive(i);
 
</source>
 
</source>
 +
  
 
== Web Fragment ==
 
== Web Fragment ==

Revision as of 06:53, 25 October 2018

DocumentationSmall Talks2018NovemberNew Features of ZK 8.6.0
New Features of ZK 8.6.0

Author
Hawk Chen, Engineer, Potix Corporation
Date
2018
Version
ZK 8.6.0


Introduction

Rich and reusable components are the main reason that people adopt ZK. In 8.6 release, we focus on making components more powerful, we create several new components for multimedia and enhance some components to support more features.

Highlighted features:

  • 8 new components
  • Compact theme

Download and Demo







Highlighted Features


Refresh Your Theme without a Change - Compact Theme

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

The new default theme iceblue is great. But we also hear the voice from users, so we now build a compact theme to let you refresh your application's looking without modification from the previous default theme breeze. It has similar font size, padding, and margin to prevent from breaking your existing system's layout with breeze. All themes of the theme pack has their corresponding compact one.

Compact-theme.png

Please check them at Theme Demo


Ios Style Switch and Toggle

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

Checkbox supports 2 new molds:

Ios Style Switch

Checkbox-ios-style-switch.gif

Toggle

Checkbox-toggle.gif


3 States Checkbox

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

Checkbox supports intermediate states:

Checkbox-3states.png


Knob-like Slider

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

Set mold attribute with knob will enable knob slider. So the slider can act as a normal knob. You can controll by a mouse wheel, dragging, clicking and entering a value to the textbox in the center.

Knob-slider.gif


Video Player

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png
Video-player.gif

With this component, you can build your own youtube or a online school.


Toolbar Accommodates More Buttons

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

When overflowPopup="true", a toolbar will have a ... symbol that shows a popup which contains those buttons weren't able to fit in the toolbar.

Toolbar-overflowPopup.gif


Page Navigation Model

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

With the help of NavigationModel and <apply>, we can construct a multi-level page navigation mechanism and navigate among those pages by loading the template.


Multi-Screen Layout - Goldenlayout

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

GoldenLayout is a layout container which layouts panels as docker type. You can drag a panel to dock at 4 regions (north, east, south, west) or to stack on another panel. This component is suitable for building a workspace like interface.

Goldenlayout.gif


Smile! - Camera

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

Developers can control the Camera component to take a snapshot with the camera that a browser can access.

Camera-snapshot.gif


Record a Clip

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

The Camera component can also record a clip with the camera that a browser can access.


Show Your Organization - Organigram

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

The component can render a organizational diagram upon a TreeModel.

Organigram.gif

Sign Here, Please

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png
Sinature.gif

Signature supports singature pad on the desktop and mobile browsers. Developers can setup pen size, pen color, and background color etc. Users can undo, save and clear their signatres.


Give Me a Rating

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png
Rating.gif


Crop an Uploaded Image

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png
Cropper.gif


Display a Barcode

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

A barcode component is used to generate a barcode at the browser, and decode the barcode at the server side.

Qrcode.png

 <barcode type="qr" value="https://www.zkoss.org/" height="100px"/>

Code128.png

 <barcode type="code128" value="https://www.zkoss.org/" height="100px"/>


ZK_Component_Reference/Multimedia_and_Miscellaneous/BarcodeScanner Scan a Barcode

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

A Barcodescanner component is used to scan and decode the barcode on the client side.

Barcode scanner.gif



Other Enhancements


Guide Users with a Pop-up Menuitem

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

If you want to guide new users to click a menuitem or open a menupopup for them, ZK provide a method to pop up the menuitem in front of users.

Menuitem-setactive.gif
menu.getMenupopup().setActive(i);


Web Fragment

  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ce-pe-ee.png

We now separate ZK web fragment support into another artifact, so that you can decide to include it or not according to your requirement.


Improved Rendering Speed

We improve the rendering speed when opening a tree node and a model change of a chosenbox.





ZK grows with you. Feel free to share with us your feedback or suggestion.


Comments



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