Skip to content

Commit

Permalink
Added a new update method for adjusting the dialog box's position w…
Browse files Browse the repository at this point in the history
…hen content is changed dynamically, at run-time
  • Loading branch information
stefangabos committed Apr 9, 2019
1 parent 6eed2d9 commit 05693b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -428,6 +428,19 @@ var dialog = new $.Zebra_Dialog('This is some information');
dialog.close(); 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 ## 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) [![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)
Expand Down

0 comments on commit 05693b7

Please sign in to comment.