Chat Widget Javascript API

Usage

API calls must be executed after the Yappy widget load script has been loaded.

Summary
maximize  If the widget is loaded and available, set it to ‘Maximized’ state
minimize  If the widget is loaded and available, set it to ‘Minimized’ state

maximize
function maximize()                               

If the widget is loaded and available, set it to ‘Maximized’ state

Example

<script>
YappyWidget.maximize();
</script>

<a href="javascript:void(YappyWidget.maximize())">Maximize</a>

 

minimize
function minimize()                               

If the widget is loaded and available, set it to ‘Minimized’ state

Example

<script>
YappyWidget.minimize();
</script>

<a href="javascript:void(YappyWidget.minimize())">Minimize</a>

Leave A Comment?