Fullscreen
[Show/Hide Right Column]

Create a custom pop-up dialog box

Plugin Dialog

Introduced with Tiki8

Use this plugin to create a custom pop-up dialog box.


Parameters

Required parameters are in bold
Preferences 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


alias
Plugin Dialog | Dialog

Contributors to this page: Marc Laporte9146 points  , lindon137 điểm  , Merbster350 points  , xavi67984 points  and Jonny Bradley1251 điểm  .
Page last modified on Thursday 19 January, 2012 05:55:45 UTC by Marc Laporte9146 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki