Difference between revisions of "ZK Book Cheatsheet"

From Documentation
m (Created page with '=Wiki formatting= For wiki formatting please take a look at http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet =ZK Book best practices= ==Images: == *Use the book name each wor…')
 
m
Line 17: Line 17:
  
 
{| border='1px'
 
{| border='1px'
! javadoc !! tag which creates links to our javadoc from the wiki !! Should be used for ALL class names !! package.path.of.the.Javadoc !! directory
+
! Tag !! Description !! When should I use it? !! Tag Content !! Attributes !! Notes !! Example(s)
type !! Give it the type of javadoc, currently available types are: calendar (ZK Calendar), jsdoc (JavaScript doc), zk (default). ZK there is no need to specify it. It is used as default.
+
|-
Enables to switch between classes and interfaces, each has their own look. Default is class. !! org.zkoss.zul.Window
+
| javadoc
 +
| tag which creates links to our javadoc from the wiki
 +
| Should be used for ALL class names
 +
| package.path.of.the.Javadoc
 +
| directory
 +
type
 +
| Give it the type of javadoc, currently available types are: calendar (ZK Calendar), jsdoc (JavaScript doc), zk (default). ZK there is no need to specify it. It is used as default.
 +
Enables to switch between classes and interfaces, each has their own look. Default is class.
 +
| org.zkoss.zul.Window
 
org.calendar.Calendars  
 
org.calendar.Calendars  
 
|-
 
|-

Revision as of 02:18, 20 April 2010

Wiki formatting

For wiki formatting please take a look at http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet

ZK Book best practices

Images:

  • Use the book name each word shortened to 3 characters as a prefix. Then follow it with _ and the name of the file where spaces are also replaced with _
    • For example ZK Calendar Essential has an image of a simple application. The filename is ZKCalEss_Simple_calendar_application.png.

Headings:

  • On a book page the maximum size of heading should be 3, for example ===my heading===
    • UNLESS stated otherwise in a conversion guide.
  • Every word in a heading should be capitalized except for joining words such as “and” and “with”.

Custom ZK Tags

Tag Description When should I use it? Tag Content Attributes Notes Example(s)
javadoc tag which creates links to our javadoc from the wiki Should be used for ALL class names package.path.of.the.Javadoc directory

type

Give it the type of javadoc, currently available types are: calendar (ZK Calendar), jsdoc (JavaScript doc), zk (default). ZK there is no need to specify it. It is used as default.

Enables to switch between classes and interfaces, each has their own look. Default is class.

org.zkoss.zul.Window

org.calendar.Calendars

imagelink Create an image and text hyperlink Whenever you need to insert an image which is a link NONE link

image text

The resource URL

The URI of the image The text to display with the link

mp A class which currently maps to tags Should be used for ALL function names The desired function NONE NONE setItem(Object o)
source A class which can highlight source code When you want to place source code into a wiki page The source code lang The lang you will use: zul -> xml, java -> java, javascript->js public void hello {}