Skip to content
Mottie edited this page Feb 16, 2012 · 4 revisions

Demo | Playground | Home | Setup | Methods | Callbacks | Theming | 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
Clone this wiki locally