Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.5 KB

GKComponent-swiper-navbar.md

File metadata and controls

67 lines (48 loc) · 1.5 KB

swiper-navbar

swiper-navbar provide the feature to swipe navagation bar if having too many content on it.

Properties

property setting
id Component's id
style HTML inline style
data-slides-per-view Default number of slides to show in one page
data-display-name Default display name when slides generated dynamically

API

  • swiper

    Original swiper object. Use this swiper object to get more function.

      var swiper = $('#swiper').gk().swiper(),
        index = swiper.clickedIndex,
        slide = swiper.clickedSlide;
    
  • onSlideClick(callback)

Trigger callback function when clicking each slide.

	  $('#swiper').gk().onSlideClick(function(swiper, event, data, index) {
        var slide = swiper.clickedSlide;
      });
  • appendSlide(data[, removeAll])

    Dynamically append slides from data.
    Set removeAll to true to clean all slides first.

      $('#swiper').gk().appendSlide(["One", "Two", "Three"]);
      $('#swiper').gk().appendSlide([{name:"One"}, {name:"Two"}, {name:"Three"}], true);
    
  • slideTo(index)

    Swipe slide.

      $('#swiper').gk().slideTo(0);
    

Above is the description of swiper-navbar. For more information, please back to GK-Components-List.

EZoApp Official Site: ezoui.com