on 07-30-2015 5:19 PM
Hi Experts, I'm trying to call onAfterRendering() Method of sap.m.TileContainer from one of the custom Tile Container which I have created by extending sap.m.TileContainer.
syntax being used is
sap.m.TileContainer.prototype.onAfterRendering().apply(this, arguments);
sap.m.TileContainer.prototype.onAfterRendering().call(this);
sap.m.TileContainer.prototype.onAfterRendering().bind(this);
this.getDomRef() and this.getId() is not being evaluated in onAfterRendering of sap.m.TileContainer, it is evaluated to be null, However 'this' object is available here.
Thanks in Advance!!
Hallo Ravi
onAfterRender does not exist for TileContainer, see API doc
https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.m.TileContainer.html
Regards
Antonette
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
onAfterRendering of custom Tile Container
onAfterRendering : function() {
sap.m.TileContainer.prototype.onAfterRendering().apply(this, arguments);
sap.m.TileContainer.prototype.onAfterRendering().call(this);
sap.m.TileContainer.prototype.onAfterRendering().bind(this);
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I made an mistake
onAfterRendering: function() {
if (sap.m.TileContainer.prototype.onAfterRendering) {
sap.m.TileContainer.prototype.onAfterRendering.apply(this, arguments);
}
//add your code
}
Here is an example
JS Bin - Collaborative JavaScript Debugging
Thanks
-D
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.