使用范围:WX
Contents
class Component ($UI/wxsys/lib/base/component) extends Operational
组件基类
Constructor Top
Component () | |||
Component ( config) |
Properties Top
string |
id
组件标识 |
Attributes Top
string |
id
组件标识 |
Methods Top
void | buildState (Any context) | |
void | destroy () | |
String | getCompid () | |
Any | getContext () | |
String | getStatePath () | |
Any | getValueByPath (String path, String prop) | |
Any | setValue (String path, String prop, Any value, Function callback) | |
void | willBuildState (Any context) | |
void | willBuildState (Any context) |
Events Top
void | longtap (CustomEvent event) | |
void | tap (CustomEvent event) | |
void | touchcancel (TouchEvent event) | |
void | touchend (TouchEvent event) | |
void | touchmove (TouchEvent event) | |
void | touchstart (TouchEvent event) |
Constructor details
Top
public
Component
()
组件基类
public
Component
( config)
构造函数
Inherited from Operational
public
Component
()
组件基类
public
Component
( config)
构造函数
Inherited from Operational
Properties Detail Top
public
string
id
组件标识
Attributes Detail Top
public
string
id
组件标识
Methods Detail Top
public
void
buildState
(Any context)
构建组件状态(子类重载)
public
void
destroy
()
组件释放(子类重载)
public
String
getCompid
()
获取组件标识
public
Any
getContext
()
获取上下文
public
String
getStatePath
()
获取组件状态路径
public
Any
getValueByPath
(String path, String prop)
根据路径获取数据的值
public
Any
setValue
(String path, String prop, Any value, Function callback)
根据路径设置数据的值
public
void
willBuildState
(Any context)
即将构建组件状态(子类重载)
public
void
willBuildState
(Any context)
即将构建组件状态(子类重载)
Events Detail Top
长按事件
点击事件
触摸动作被打断,如来电提醒,弹窗
触摸动作结束
触摸后移动
触摸动作开始