Plugin Dialog
Introduced with Tiki8Use this plugin to create a custom pop-up dialog box.
Table of contents
Parameters
Required parameters are in boldPreferences required: wikiplugin_dialog, feature_jquery_ui
| Parameters | Accepted Values | Description | Default | Since |
| title | text | |||
| buttons | text | Button labels separated by commas. | Ok,Cancel | |
| actions | rawhtml_unsafe | JS to perform on 1st button click. | ||
| width | int | In pixels. | 300 | |
| id | any string except for HTML and PHP tags | Automatically generated if left empty in the form "wpdialog_XX" (must be unique per page) | ||
| showAnim | text | |||
| hideAnim | text | |||
| autoOpen | alpha | y/n | y | |
| modal | alpha | y/n | n | |
| wiki | pagename | Wiki page to use as dialog body. | ||
| openAction | rawhtml_unsafe | JS to execute when dialog opens. |
Example
This code will cause a pop-up dialog box to appear when this page is loaded:Plugin
{DIALOG(title="World hello Dialog!" buttons="Foo,Bar" actions="alert(\"foo clicked\"),alert(\"you cancelled\")" showAnim="blind" hideAnim="explode" autoOpen="y" modal="y" wiki="plugin dialog test body" openAction="testDialog(this);")}Hello World{DIALOG}More Resources
Plugin Dialog | Dialog
