SAPUI5 FeedTile Control, HOW TO STOP date NULL Error in Console !!!
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 ;
}