I'm new in SAPUI5 and I want to add another element in to the button object. But it doesn't support. How can I add an element inside button ? Here is my code;
<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>
It gives an error. I don't know where I'm doing a mistake. I want to add that FlexBox object in to the Button's content. Is it possible to do that ? Thanks for your suggestions