-2
最終的觀點應該是這樣的:如何sapui5標籤前插入字符 「*」
在view.xml用的代碼是這樣的:
<VBox height="90px">
<Label text="{i18n>FISCALYEAR_LABEL}" mandatory="mandatory"/>
<Select id="FiscalYear"
items="{
path: '/FiscalYearSet',
sorter: { path: 'FiscalYearID' }
}">
<core:Item key="{FiscalYearID}" text="{FiscalYearNum}" />
</Select>
<ComboBox
items="{
path: '/FiscalYearSet',
sorter: { path: 'FiscalYearID' }
}">
<core:Item key="{FiscalYearID}" text="{FiscalYearNum}" />
</ComboBox>
</VBox>
我設置一個屬性'mandatory ='mandatory'',但它不起作用。
我已經知道如何解決默認
boolean
值。該屬性是'必需=「真」「不」強制性=「強制性」' – huangxbd1990