ChoicePicker
A component that allows selecting one or more options from a list.
组件展示
属性
属性名
类型
必需性
描述
id*ComponentId必需
暂无描述
accessibilityAccessibilityAttributes可选
暂无描述
stylesStyles可选
Component style properties
weightnumber可选
The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.
checksCheckRule[]可选
A list of checks to perform. These are function calls that must return a boolean indicating validity.
component*"ChoicePicker"必需
暂无描述
labelstring | DataBinding | object可选
Represents a string
variant"multipleSelection" | "mutuallyExclusive"可选
A hint for how the choice picker should be displayed and behave.
可选值:
multipleSelection, mutuallyExclusiveoptions*object[]必需
The list of available options to choose from.
value*string[] | DataBinding | object必需
Represents a value that can be either a literal array of strings, a path to a string array in the data model, or a function call returning a string array.
代码示例
{
"component": "ChoicePicker",
"id": "choicepicker_1",
"options": {},
"value": "示例value"
}