zoukankan      html  css  js  c++  java
  • [转]ion-slide-box

    本文转自:http://ionicframework.com/docs/api/directive/ionSlideBox/

    The Slide Box is a multi-page container where each page can be swiped or dragged between:

    SlideBox

    Deprecated API

    will be removed in the next Ionic release in favor of the new ion-slides component. Don't depend on the internal behavior of this widget.

    Usage

    <ion-slide-box on-slide-changed="slideHasChanged($index)">
      <ion-slide>
        <div class="box blue"><h1>BLUE</h1></div>
      </ion-slide>
      <ion-slide>
        <div class="box yellow"><h1>YELLOW</h1></div>
      </ion-slide>
      <ion-slide>
        <div class="box pink"><h1>PINK</h1></div>
      </ion-slide>
    </ion-slide-box>
    

    API

    AttrTypeDetails
            delegate-handle                
    (optional)
    string      

    The handle used to identify this slideBox with $ionicSlideBoxDelegate.

            does-continue                
    (optional)
    boolean      

    Whether the slide box should loop.

            auto-play                
    (optional)
    boolean      

    Whether the slide box should automatically slide. Default true if does-continue is true.

            slide-interval                
    (optional)
    number      

    How many milliseconds to wait to change slides (if does-continue is true). Defaults to 4000.

            show-pager                
    (optional)
    boolean      

    Whether a pager should be shown for this slide box. Accepts expressions via show-pager="". Defaults to true.

            pager-click                
    (optional)
    expression      

    Expression to call when a pager is clicked (if show-pager is true). Is passed the 'index' variable.

            on-slide-changed                
    (optional)
    expression      

    Expression called whenever the slide is changed.  Is passed an '$index' variable.

            active-slide                
    (optional)
    expression      

    Model to bind the current slide index to.

  • 相关阅读:
    java中i++ 和 ++i的区别
    下载及配置Python+openCV
    Java 计算两个日期相差多少年月日
    conda创建、查看、删除虚拟环境
    MySQL Explain详解
    mysql实现group by后取各分组的最新一条
    Mybatis中的映射结果resutType和resultMap
    java8 Stream 快速实现List转map 、分组、过滤等操作
    LC1263-AI寻路优化: 距离优先bfs -> heuristic + A* -> tarjan + A*
    第8章复习
  • 原文地址:https://www.cnblogs.com/freeliver54/p/5231855.html
Copyright © 2011-2022 走看看