Skip to Content

When You use FeedTile control in sapui5 and when you try remove Date from Feedtile control , for every image change in console you get date null error.

To avoid that Please Follow the below code:

//*****************************************IN VIEW********************************************//

var oImage1 = new sap.suite.ui.commons.FeedItem({

  title: “We Are Here To Connect !!!”,

  image: “imgs/4i.jpg”,

  publicationDate: new Date()

  });

var articles = new Array();

  articles.push(oImage1);

var oFeedTile = new sap.suite.ui.commons.FeedTile({

  items: articles,

  }).addStyleClass(“oFeedTile”);

  // Create a container for the FeedTile with a specified height and width

  var oBorderLayout = new sap.ui.commons.layout.BorderLayout({width: “450px”, height: “300px”}).addStyleClass(“oBorderLayout”);

// Add the FeedTile to the container

  oBorderLayout.createArea(sap.ui.commons.layout.BorderLayoutAreaTypes.top, oFeedTile );

  oBorderLayout.setAreaData(sap.ui.commons.layout.BorderLayoutAreaTypes.top, {

  size : “100%”,

  visible : true

  });

//*****************************************IN CSS********************************************//

.oFeedTile .sapSuiteUiCommonsFeedTileAge

{

  display:none!important ;

}

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply