Drawer
These methods allow you to interact with the Drawer.
note
Please keep in mind that the CartPops API is subject to change. Before updating, please check the changelog to learn what has changed and whether you can safely upgrade.
show()
Open the Drawer.
🛠 Method
CartPops.drawer.show();
🌈 Example
jQuery( document).ready( function( $ ){
$( '#your-element' ).on( 'click' , function() {
CartPops.drawer.show();
});
});
hide()
Hide the Drawer.
🛠 Method
CartPops.drawer.hide();
🌈 Example
jQuery( document).ready( function( $ ){
$( '#your-element' ).on( 'click' , function() {
CartPops.drawer.hide();
});
});
toggle()
Toggle the Drawer.
🛠 Method
CartPops.drawer.toggle();
🌈 Example
jQuery( document).ready( function( $ ){
$( '#your-element' ).on( 'click' , function() {
CartPops.drawer.toggle();
});
});