2014-10-08 38 views
0

我可以將StandardTileGenericTile放入同一個TileContainer嗎?SAPUI5中的StandardTile和GenericTile

我在嘗試失敗。

+0

請告訴我們你嘗試過什麼,我們就可以或許有所幫助。 – qmacro 2014-10-09 06:16:35

+0

我試着用jsview完全一樣的東西。它不會發生。在jsView中,您將不得不在tile聚合中提供sap.m.TileBase對象。否則,它不顯示。但GenericTile屬於實驗性API,可能無法呈現。 – Nareshkumar 2014-10-20 12:21:38

回答

0

是的,你可以做到這一點,你必須把它變成一個customTile這樣的:

<CustomTile class="myCustomTile"> 
    <content> 
    <suite:GenericTile 
    size="M" 
    frameType="TwoByOne" 
    press="press" 
    backgroundImage="data/NewsImage1.png"> 
    <suite:tileContent> 
     <suite:TileContent footer="August 21, 2013" size="M"> 
     <suite:content> 
      <suite:NewsContent 
      size="M" 
      contentText="SAP Unveils Powerful New Player Comparison Tool Exclusively on NFL.com" 
      subheader="SAP News"> 
      </suite:NewsContent> 
     </suite:content> 
     </suite:TileContent> 
    </suite:tileContent> 
    </suite:GenericTile> 
    </content> 
    </CustomTile> 

檢查這個職位上scn