Skip to Content
0

how to add icon saved in svg file in Grid view and show that icon in grid view

Nov 02, 2017 at 06:00 AM

15

avatar image
Former Member

Theres some error am not able to add that icon field in grid view because icon saved in svg file.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Arjun Biswas Nov 02, 2017 at 06:09 AM
0

Is the saved icon static or are you getting it through OData.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 02, 2017 at 07:14 AM
0

Hello Jeel Joshi,

try using below code

// xmlns:l="sap.ui.layout" xmlns:"sap.m"

<l:Grid hSpacing="0" vSpacing="0" class="sapUiSmallMargin" defaultSpan="XL5 L5 M5 S12" defaultIndent="XL1 L1 M1">

<Image src="/your file path" desityAware="false" width="100%">

<layoutData> <l:GridData moveForward="M6" /> </layoutData>

</Image>

Regards

Venkat

Share
10 |10000 characters needed characters left characters exceeded