API
Component

Tabs ($UI/wxsys/comps/tabs/tabs)

使用范围:WX

Contents

component Tabs ($UI/wxsys/comps/tabs/tabs) extends Component

<b>使用场景</b>:用于实现通过点击页签实现多页切换效果 <b>使用方法</b>:页签个数任意,可添加,也可删除 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-ycw/ye-qian.html#

Constructor Top

  Tabs ()
  Tabs ( config)

Static Properties & Enumerations Top

String EVENT_SELECT = "select"

页签变化事件

Methods Top

void setActiveTabId (String id)
void setActiveTabIndex (Integer index)

Operations Top

void setCurrentTab ()

Events Top

void select (SelectEvent event)

Constructor details Top

public Tabs ()

<b>使用场景</b>:用于实现通过点击页签实现多页切换效果 <b>使用方法</b>:页签个数任意,可添加,也可删除 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-ycw/ye-qian.html#

public Tabs ( config)

构造函数

Inherited from Operational

Parameters

config

操作配置

Static Properties & Enumerations Detail Top

static public String EVENT_SELECT = "select"

页签变化事件

Methods Detail Top

public void setActiveTabId (String id)

根据id跳转到指定的页签

Parameters

String id

页签标识

Return Value

void

public void setActiveTabIndex (Integer index)

根据序号跳转到指定的页签

Parameters

Integer index

序号

Return Value

void

Operations Detail Top

public void setCurrentTab ()

跳转到

See SetCurrentTab

Return Value

void

Events Detail Top

public void select (SelectEvent event)

值改变

Parameters

SelectEvent event


结构如下:

{ index : 当前页签序号, id : 当前页签标识, source : 组件自身 }

Return Value

void