Skip to content
Permalink
Browse files

Added a new `update` method for adjusting the dialog box's position w…

…hen content is changed dynamically, at run-time
  • Loading branch information...
stefangabos committed Apr 9, 2019
1 parent 6eed2d9 commit 05693b717f18a79691dfc003ac25337cc4b88f75
Showing with 13 additions and 0 deletions.
  1. +13 −0 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)

0 comments on commit 05693b7

Please sign in to comment.
You can’t perform that action at this time.