cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.Tile

Former Member
0 Kudos

Hi experts,

i need some help i want to know how i can point to an URL whit sap.m.Tile

thank you

Regards,

Simón.

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_gb
Explorer
0 Kudos

Hey Simon,

will this help?

SAPUI5 sap.m.Tile example gbvaibhav

regards

GB

Former Member
0 Kudos

Hi GB ists very helpful thank you i have a question in the parameters can we told

to the tile in what browser we want to open the url??

Former Member
0 Kudos

Hi Simon,

you mean you want to pass the url from the tile to the press Event function, if yes than you need to do like below : its an example you can change according to your tile ... i am providing my working example:

view :

<mvc:View  controllerName="alcopaPortalManagement.controller.Main" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"

  class="sapUiSizeCompact"

  xmlns="sap.m"

  xmlns:app="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"

  >

  <Page showHeader="false">

  <content>

  <TileContainer id="tileContainer" tiles="{/TileCollection}" >

  <StandardTile

  press="onPressTile"

  icon="sap-icon://{icon}"

  type="{type}"

  number="{number}"

  app:url="{url}"

  numberUnit="{numberUnit}"

  title="{title}"

  info="{info}"

  infoState="{infoState}" />

  </TileContainer>

  </content>

  </Page>

  </mvc:View>

controller

onPressTile:function(oEvent){

   //  var src = oEvent.getSource();

    var url = oEvent.getSource().data("url");

     window.open(url,'_blank');

  }

thanks

Viplove

Answers (0)