I'm trying to create programmatically this Icon from xml view
<core:Icon
src="sap-icon://sys-help-2"
class="size1"
dataHelp:description="{i18n>path.to.description}"
width="100px"
color="#1C4C98" >
<core:layoutData>
<l:GridData span="L1 M1 S1" />
</core:layoutData>
</core:Icon>
I could figure out easy props:
const icon = new sap.ui.core.Icon({
src: 'sap-icon://sys-help-2',
color: '#1C4C98',
width: '100px'
})
icon.addStyleClass('size1');
but for dataHelp:description and <core:layoutData> I have no idea and cannot find any good examples. Is it possible by any chance?