Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitrohi
Explorer
0 Kudos

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 ;

}

Labels in this area