User Interface
The user interface for ClickWiki versions 1.1 and above are managed by the cui module (part of core, and located in lib/ui.php).
Panel
A Panel is an object that generates a panel, an interface that requires input from an editor (as opposed to a Bar or Inline). It the standard interface editing any kind of entry and for non-bypassable forms such as login or signups.
- Does not require javascript or graphics, but uses both.
- Tabbed interface with a fallback to sections.
- UI loads from a definition file (JSON64 is used), which can be an entry.
- Works in all browsers (lynx, IE, Opera, Konqueror, w3c, etc), with cookies, javascript, images or any combination of these features disabled.
- Can be translated.
- Honors the user's assistance level setting.
- Validates, preferably client side, falling back to server side.
- Full help system.
- Integrated preview.
- Hints for incremental update.
- Hints for alternate presentation formats.
cuiPanel
- class cuiPanel( array $ui )
- $ui is a panel array. Use cui: :load() to load from an entry.
- draw()
- Returns html of a panel.
- addContent( array $content, string $prefix = 'save_' )
- Adds the content with the prefix added to all keys.
- addSource( string $id, mixed $source )
- Sets a source referenced in the ui file with the key $id.
Bar
A Bar is a strip of controls inserted as a block into an entry. It should only contain controls that affect context and how the editor views the content, never altering the content itself. As such, all buttons should follow the non-commit style.
"User Interface". ClickWiki. 17 Oct 2007 21:24 UTC
Revision: http://clickwiki.cheshirehall.org/userinterface/1192656244/
Current Revision: http://clickwiki.cheshirehall.org/userinterface/
When citing wiki pages you must include the revision.
Revision: http://clickwiki.cheshirehall.org/userinterface/1192656244/
Current Revision: http://clickwiki.cheshirehall.org/userinterface/
When citing wiki pages you must include the revision.
