Methods - Mottie/Kwicks GitHub Wiki
Demo | Playground | [Home]] ](/Mottie/Kwicks/wiki/[Setup) | [Methods]] | [Theming]] ](/Mottie/Kwicks/wiki/[[Change)
####Any Kwicks Expanded? if sticky is set to true, this will always return true
// returns true if kwick is expanded, or false if collapsed
$('#kwicks').data('kwicks').isActive();
####Get expanded kwick (index)
// returns zero based index if kwick is expanded; returns -1 if collapsed
$('#kwicks').data('kwicks').getActive();
####Set expanded kwick
// opens the third kwick panel (zero based index)
$('#kwicks').data('kwicks').openKwick(2);
// shortcut method
$('#kwicks').kwicks(2);
####Collapse kwick this will not work on sticky kwicks - that just sounds wrong LOL
// collapses the kwick panel
$('#kwicks').data('kwicks').closeKwick();
// shortcut method
$('#kwicks').kwicks(-1); // any negative number will work