API
Component

Navbar ($UI/wxsys/comps/navbar/navbar)

使用范围:WX

Contents

component Navbar ($UI/wxsys/comps/navbar/navbar) extends Wrapper

<b>使用场景</b>:用于显示一排按钮,刚点击过的按钮显示下划线。和滑块视图组件配合,实现点击导航栏中的某个按钮,显示某个滑块项 <b>使用方法</b>:按钮个数任意,可添加,也可删除,可分别设置每个按钮的点击事件。 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-lhj/dao-hang-lan.html#

Constructor Top

  Navbar ()
  Navbar ( config)

Methods Top

void to (Integer current)

Operations Top

void setCurrent (Integer current)

Events Top

void active (Res event)

Constructor details Top

public Navbar ()

<b>使用场景</b>:用于显示一排按钮,刚点击过的按钮显示下划线。和滑块视图组件配合,实现点击导航栏中的某个按钮,显示某个滑块项 <b>使用方法</b>:按钮个数任意,可添加,也可删除,可分别设置每个按钮的点击事件。 ## <b>文档链接</b>:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-lhj/dao-hang-lan.html#

public Navbar ( config)

构造函数

Inherited from Operational

Parameters

config

操作配置

Methods Detail Top

public void to (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 active (Res event)

导航切换

See Active

Parameters

Res event

Return Value

void