Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 02, 2017 at 06:09 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2017 at 07:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded