我是SAPUI5中的新成員,我想將其他元素添加到按鈕對象中。但它不支持。我怎樣才能添加按鈕內的元素? 這是我的代碼;SAPUI5按鈕內容問題
<Button>
<FlexBox
width="100%"
direction="Row"
alignItems="Center"
justifyContent="Start">
<items>
<f:Avatar
src="./resources/images/dashboard/Todo128.png"
displaySize="M">
</f:Avatar>
<VBox class="gridItemContent">
<Text
class="gridItemContentTitle"
text="Todo"/>
<Button
text="Todo Oluştur"
icon="sap-icon://add-coursebook"
type="Transparent">
</Button>
</VBox>
</items>
</FlexBox>
</Button>
它給出了一個錯誤。我不知道我在哪裏犯了一個錯誤。我想將FlexBox對象添加到Button的內容中。有可能這樣做嗎? 感謝您的建議
你不能這樣做,因爲按鈕沒有任何聚集追加子控件 – santhosh
我應該使用哪些組件來做到這一點?順便提一下,我需要按這個組件的事件。是否有一個通用可點擊的容器元素能夠在其中添加組件。非常感謝。 – MLElyakan