使用范围:WX
component Swiper ($UI/wxsys/comps/swiper/swiper) extends Component
Constructor Top
Swiper () | |||
Swiper ( config) |
Static Properties & Enumerations Top
String |
EVENT_INDEX_CHANGED
= "indexchanged"
当前滑块项变化 |
Methods Top
void | setCurrent (Integer index) |
Operations Top
void | setCurrent (Integer index) |
Events Top
void | indexchanged (IndexChangedEvent event) |
Constructor details
Top
public
Swiper
()
使用场景:小程序中的swiper组件,称为滑块视图容器。其中可设置多个滑块项,每次只显示一个滑块项。滑块项既可以横向排列,也可以纵向排列,表示既可以左右滑动切换,也可以上下滑动切换滑块项
使用方法:滑块项既可以在设计时添加好,也可以根据数据动态生成。动态生成的设置方法是:在组件中点击“设置动态列表”,给动态列表绑定数据集,然后点击“添加滑块项”,在滑块项中设置显示的内容
##
文档链接:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-ycw/hua-kuai-shi-tu.html#
public
Swiper
( config)
构造函数
Inherited from Operational
public
Swiper
()
public
Swiper
( config)
构造函数
Inherited from Operational
Static Properties & Enumerations Detail Top
static
public
String
EVENT_INDEX_CHANGED
= "indexchanged"
"indexchanged"
当前滑块项变化
Methods Detail Top
public
void
setCurrent
(Integer index)
跳转到指定序号的滑块项
Operations Detail Top
public
void
setCurrent
(Integer index)
根据序号跳转到指定的滑块项
Events Detail Top
值改变