ZK Book Cheatsheet

From Documentation
Revision as of 02:14, 20 April 2010 by Tmillsclare (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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 {}