← view more API documentation

api.box.shrink

Minimizes the chatbox.

Examples

Lets say you have a drawing canvas, and whenever the visitor is drawing you want to minimize the chatbox. You can just do this:

onStartDrawing(function(){
    olark('api.box.shrink');
})
onEndDrawing(function(){
    olark('api.box.expand');
})

Discussion

Feel free to propose good uses for this method, or even drop us some suggestions for improvement! You can also join our mailing list to collaborate with other developers and get updates from us.