Fork me on GitHub

Ply

Alert

Hello %username%!

					Ply.dialog("alert", "Hello %username%!");
				

Confirm

Continue?

					Ply.dialog(
						"confirm",
						{ effect: "3d-sign" },
						"Continue?"
					);
				

Prompt

Spam subscribe

					Ply.dialog("prompt", {
						title: "Spam subscribe",
						form: { email: "E-mail" }
					});
				

Dialogs / Multistep

You want to win?

					Ply.dialog({
						"intro": {
							ui: "confirm",
							data: {
								text: "You want to win?",
								ok: "Yes",
								cancel: "No"
							},
							next: "congratulations",
							nextEffect: "3d-flip[180,-180]"
						},
						"congratulations": {
							data: {
								children: [{
									tag: "img",
									src: "st/you-win.gif"
								}],
								ok: "Okay"
							}
						}
					});
				
Loading…