【发布时间】:2019-02-09 16:10:23
【问题描述】:
看起来很简单,但我无法破解它。我想要的只是单选按钮组中每个值的标签,以显示在每个单选按钮上方.....用 CSS 尝试了一些东西,但目前还没有雪茄,所以任何指针都将不胜感激。
我在自定义控件中使用复合数据对象传递值
<xc:ccQuestionInterimRadios required="true"
dataSource="#{document1}" fieldName="test"
helpText="Please select an answer"
placeholder="Enter any further details here..."
questionHeader="primary" questionTextNJD="QuestionTextNJD"
questionText="Question text goes here">
<xc:this.radioOptions><![CDATA[#{javascript:return ['1', '2', '3', '4', '5'];}]]></xc:this.radioOptions>
</xc:ccQuestionInterimRadios>
并且值被传递为:
<xp:selectItems>
<xp:this.value><![CDATA[#{javascript:compositeData.radioOptions}]]></xp:this.value>
</xp:selectItems>
输出的 HTML 是:
<label for="view:_id1:_id2:_id45:_id46:radioGroupOptions:0">
<input type="radio" id="view:_id1:_id2:_id45:_id46:radioGroupOptions:0" name="view:_id1:_id2:_id45:_id46:radioGroupOptions" value="1">
1
</label>
【问题讨论】:
标签: css xpages radio-group