Loading...
 
Features / Usability

Features / Usability


Plugin Dialog, "body of plugin" and non-auto initiate

posts: 92
  1. What is the purpose of the "body of plugin". I don't see the text "Hello World" displayed anywhere on the page or in the dialog
  2. How do you initiate the dialog if autoOpen="n"? I would have guessed the "body of plugin" was a link or button text, but that is not the case (see above)

from https://doc.tiki.org/PluginDialog
Copy to clipboard
{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}
posts: 32 Germany

same question:

  1. How do you initiate the dialog if autoOpen="n"?
  2. What are the params for showAnim and hideAnim? (blind, explode .. are ther any more?)


Thanx

posts: 126886 United Kingdom

Hi Bob

I'd forgotten about this one - needs updating to use bootstrap one day, but still seems to work just about.

These are still jQuery-UI dialogs so you need to refer to the API here: https://api.jqueryui.com/dialog/#method-open

So if the dialog is the first one on the page you could use this to open it:

Copy to clipboard
$("#wpdialog_1").dialog( "open" );


And the options for the show and hide animations can be found here and the full list here

If you get this working and can add anything more to the doc page that would be great! cool

posts: 32 Germany

Hi Jonny,

thank you! I got it running.

I inserted a little Example in the doc page.

posts: 126886 United Kingdom

Woo hoo!

Well done and thanks for the doc update mrgreen


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting