From 05693b717f18a79691dfc003ac25337cc4b88f75 Mon Sep 17 00:00:00 2001 From: Stefan Gabos Date: Tue, 9 Apr 2019 21:32:06 +0300 Subject: [PATCH] Added a new `update` method for adjusting the dialog box's position when content is changed dynamically, at run-time --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2aea547..dbbc085 100644 --- a/README.md +++ b/README.md @@ -428,6 +428,19 @@ var dialog = new $.Zebra_Dialog('This is some information'); dialog.close(); ``` +### `update()` + +Use this method to adjust the dialog box's position after content is changed dynamically, at run-time. + +```javascript +var dialog = new $.Zebra_Dialog('This is some information'); + +// change the content in the dialog box +$('.ZebraDialog_Body').html('New content'); + +dialog.update(); +``` + ## Support the development of this project [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RKMCMRZB493LY)