E.9.The options tag

优质
小牛编辑
125浏览
2023-12-01

E.9. The options tag

Renders a list of HTML 'option' tags. Sets 'selected' as appropriate based on bound value.

表 E.8. Attributes

AttributeRequired?Runtime Expression?Description

itemLabel

false

true

Name of the property mapped to the inner text of the 'option' tag

items

true

true

The Collection, Map or array of objects used to generate the inner 'option' tags

itemValue

false

true

Name of the property mapped to 'value' attribute of the 'option' tag