使用范围:WX
component Navbar ($UI/wxsys/comps/navbar/navbar) extends Wrapper
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
()
使用场景:用于显示一排按钮,刚点击过的按钮显示下划线。和滑块视图组件配合,实现点击导航栏中的某个按钮,显示某个滑块项
使用方法:按钮个数任意,可添加,也可删除,可分别设置每个按钮的点击事件。
##
文档链接:#http://docs.newdao.net/xiao-cheng-xu-bu-ju-zu-4ef6-lhj/dao-hang-lan.html#
public
Navbar
( config)
构造函数
Inherited from Operational
public
Navbar
()
public
Navbar
( config)
构造函数
Inherited from Operational
Methods Detail Top
public
void
to
(Integer current)
根据序号跳转到指定的导航栏
Operations Detail Top
public
void
setCurrent
(Integer current)
根据序号跳转到指定的导航栏
Events Detail Top
导航切换
See Active