responsive

isPaused()

  • Available since: 1.2
  • Type: public method
  • Return value: Boolean (true or false)

Method returns boolean value which specifies whether autoplay is paused.

Method calling

1) Method can be called inside every callback function (as demonstrated in demo 1):

this.isPaused();

2) In case there is only one element matching the selector, method can be called anywhere in your code (as demonstrated in demo 2):

$('selector').data('jAccordion').isPaused();

3) In case there are more elements matching the selector, method can be called anywhere in your code (eq(index) specifies index of accordion instace):

$('selector').eq(index).data('jAccordion').isPaused();

Demo 1

  • Source files of this demo are located in: Examples\APIisPausedDemo1

Demo 1 demonstrates how to call the described method inside callback function onPause() and onResume() (the protocol is the same for all callback functions). Move cursor over accordion and look at the report below which indicates whether accordion is paused.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 2

  • Source files of this demo are located in: Examples\APIisPausedDemo2

Demo 2 demonstrates how to call the described method anywhere in your code. Method is called every second.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon