responsive

getSlidesCount()

  • Available since: 1.2
  • Type: public method
  • Return value: Number

Method returns number of slides.

Method calling

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

this.getSlidesCount();

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').getSlidesCount();

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').getSlidesCount();

Demo 1

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

Demo 1 demonstrates how to call the described method inside callback function ready() (the protocol is the same for all callback functions). Number of slides is displayed below accordion after it's fully loaded.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 2

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

Demo 2 demonstrates how to call the described method anywhere in your code.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon