flyingon.Control Class
控件基类
Item Index
Methods
Properties
Methods
dataset
(
(?flyingon.DataSet | Object)
-
value
获取或设置关联的数据集
Parameters:
-
value
?flyingon.DataSet=未传入值时表示获取值, 否则表示设置值
Returns:
(?flyingon.DataSet | Object):
获取值时返回数据集对象或null, 否则返回当前对象实例
indexOf
(
Int
-
item
获取指定子项的索引号(与数组同名方法相同)
Parameters:
-
item
Any子项
Returns:
Int:
索引号, -1表示不存在
lastIndexOf
(
Int
-
item
从后向前获取指定子项的索引号(与数组同名方法相同)
Parameters:
-
item
Any子项
Returns:
Int:
索引号, -1表示不存在
pop
()
Any
弹出最后一个子项(与数组同名方法相同)
Returns:
Any:
弹出的子项
push
(
Int
-
item
在集合的末尾添加一个或多个子项(与数组同名方法相同)
Parameters:
-
item
...子项
Returns:
Int:
子项总数量
pushBack
(
Object
-
name
-
value
回推数据至数据集
Parameters:
-
name
String属性名
-
value
Any属性值
Returns:
Object:
当前实例对象
shift
()
Any
弹出第一个子项(与数组同名方法相同)
Returns:
Any:
弹出的子项
splice
(
Object[]
-
index
-
length
-
item
在集合的指定位置移除或插入一个或多个子项(与数组同名方法相同)
Parameters:
-
index
Int索引号
-
length
Int=要移除的子项数量
-
item
...=要插入的子项
Returns:
Object[]:
移除的子项集合
subscribeBind
(
Object
-
dataset
-
action
接收数据集变更动作处理
Parameters:
-
dataset
flyingon.DataSet数据集
-
action
Object数据集动作 { name: string, row: DataRow }
Returns:
Object:
当前实例对象
unshift
(
Int
-
item
在集合的开始位置插入一个或多个子项(与数组同名方法相同)
Parameters:
-
item
...any子项
Returns:
Int:
子项总数量
Properties
defaultWidth
Int
控件默认宽度(width === 'default'时的宽度)
length
Int
子项总数量