使用范围:UI2
Contents
component Router ($UI/system/components/justep/router/router) extends ViewComponent
Router组件
Constructor Top
Router () | |||
Router ( options) |
Attributes Top
string | xid |
Methods Top
void | addRouteInnerItem (string name, integer hashbang) | |
void | addRouteItem (string name, integer param) | |
void | publishState (boolean isReplace) | |
void | removeRouteItem (string name) |
Events Top
void | onRoute (RouteEvent event) |
Constructor details
Top
public
Router
()
Router组件
public
Router
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Router
()
Router组件
public
Router
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Attributes Detail Top
public
string
xid
Methods Detail Top
public
void
addRouteInnerItem
(string name, integer hashbang)
添加子路由项
public
void
addRouteItem
(string name, integer param)
添加路由项
public
void
publishState
(boolean isReplace)
提交路由变动信息
public
void
removeRouteItem
(string name)
删除路由项
Events Detail Top
路由变动事件