API
Component

Carousel ($UI/wxsys/comps/carousel/carousel)

使用范围:WX

Contents

component Carousel ($UI/wxsys/comps/carousel/carousel) extends Component

<b>使用场景</b>:幻灯片由多张图片组成,横向切换每张图片,可自动定时切换,也可手动切换 <b>使用方法</b>:通过设置“数据”和“图片列”属性,显示数据中每行对应的图片列中的图片 ## <b>文档链接</b>:#http://docs.newdao.net/huan-deng-pian.html#

Constructor Top

  Carousel ()
  Carousel ( config)

Static Properties & Enumerations Top

String EVENT_INDEX_CHANGED = "indexchanged"

序号变化事件

Methods Top

void setCurrent (Integer current)

Operations Top

void setCurrent (Integer current)

Events Top

void indexchanged (IndexchangedEvent event)

Constructor details Top

public Carousel ()

<b>使用场景</b>:幻灯片由多张图片组成,横向切换每张图片,可自动定时切换,也可手动切换 <b>使用方法</b>:通过设置“数据”和“图片列”属性,显示数据中每行对应的图片列中的图片 ## <b>文档链接</b>:#http://docs.newdao.net/huan-deng-pian.html#

public Carousel ( config)

构造函数

Inherited from Operational

Parameters

config

操作配置

Static Properties & Enumerations Detail Top

static public String EVENT_INDEX_CHANGED = "indexchanged"

序号变化事件

Methods Detail Top

public void setCurrent (Integer current)

设置当前序号

Parameters

Integer current

序号

Return Value

void

Operations Detail Top

public void setCurrent (Integer current)

设置当前序号

Parameters

Integer current

序号

Return Value

void

Events Detail Top

public void indexchanged (IndexchangedEvent event)

序号变化事件

Parameters

IndexchangedEvent event


结构如下:

{ current : 当前序号, source : 组件自身 }

Return Value

void