使用范围:UI2
Contents
component Picker ($UI/system/components/justep/picker/picker) extends List
picker
Constructor Top
Picker () | |||
Picker ( options) |
Attributes Top
string |
bind-itemText
显示项绑定表达式 | ||
string |
class
组件class | ||
string |
xid
组件标示 |
Methods Top
Object | get (String name) | |
integer | getSelectedIndex () | |
object | getSelectedItem () | |
void | set (json arg) | |
void | setSelectedIndex (integer index) | |
void | setSelectedItem (object item) |
Events Top
void | onChange (ValueChangeEvent event) |
Constructor details
Top
public
Picker
()
picker
public
Picker
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Picker
()
picker
public
Picker
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Attributes Detail Top
public
string
bind-itemText
显示项绑定表达式
public
string
class
组件class
基础样式: x-picker(必须)
public
string
xid
组件标示
Methods Detail Top
public
Object
get
(String name)
获取属性值
public
integer
getSelectedIndex
()
获取选中项index
public
object
getSelectedItem
()
获取选中项
public
void
set
(json arg)
设置属性值
public
void
setSelectedIndex
(integer index)
通过index设置选中项
public
void
setSelectedItem
(object item)
设置选中项
Events Detail Top
[回调型事件]picker值变化事件