on 06-07-2016 8:10 AM
Hi Sindhuja,
How about TabStrip (for sap.ui.commons)? SAPUI5 SDK - Demo Kit
or IconTabBar (for sap.m)? SAPUI5 Explored
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
This is my code.Please check where I am doing wrong..I am getting a blank screen as output.Just tried a sample
createContent : function(oController) {
var oTabStrip1 = new sap.ui.commons.TabStrip("Tabstrip1");
oTabStrip1.setWidth("400px");
oTabStrip1.setHeight("200px");
oTabStrip1.setEnableTabReordering(true);
oTabStrip1.attachClose( function (oEvent) {
var oTabStrip = oEvent.oSource;
oTabStrip.closeTab(oEvent.getParameter("index"));
var oLayout1 = new sap.ui.commons.layout.MatrixLayout("Matrix1", {columns: 2, width: "100%"});
oLayout1.setWidths(['150px']);
oTabStrip1.createTab("Geology",oLayout1);
return oTabStrip1;
});
}
Hi Sindhuja,
you are creating Layout and returning tab strip inside CloseTab event.Below lines of code should be outside closeTab event .
var oLayout1 = new sap.ui.commons.layout.MatrixLayout("Matrix1", {columns: 2, width: "100%"});
oLayout1.setWidths(['150px']);
oTabStrip1.createTab("Geology",oLayout1);
return oTabStrip1;
Your code should be like this.
var oTabStrip1 = new sap.ui.commons.TabStrip("Tabstrip1");
oTabStrip1.setWidth("400px");
oTabStrip1.setHeight("200px");
oTabStrip1.setEnableTabReordering(true);
oTabStrip1.attachClose( function (oEvent) {
var oTabStrip = oEvent.oSource;
oTabStrip.closeTab(oEvent.getParameter("index"));
});
var oLayout1 = new sap.ui.commons.layout.MatrixLayout("Matrix1", {columns: 2, width: "100%"});
oLayout1.setWidths(['150px']);
oTabStrip1.createTab("Geology",oLayout1);
return oTabStrip1;
Regards,
Viswa
Sindhuja,
For attachClose event, you're not closing the braces (check comments in below code). Try this:
createContent : function(oController) {
var oTabStrip1 = new sap.ui.commons.TabStrip("Tabstrip1");
oTabStrip1.setWidth("400px");
oTabStrip1.setHeight("200px");
oTabStrip1.setEnableTabReordering(true);
oTabStrip1.attachClose(function (oEvent) {
var oTabStrip = oEvent.oSource;
oTabStrip.closeTab(oEvent.getParameter("index"));
}); //These are the braces that I was talking about
var oLayout1 = new sap.ui.commons.layout.MatrixLayout("Matrix1", {columns: 2, width: "100%"});
oLayout1.setWidths(['150px']);
oTabStrip1.createTab("Geology",oLayout1);
return oTabStrip1;
});
}
Regards,
Sai Vellanki.
Hi Viswa,
I am getting output for the example given in SAPUI5 demo kit.
But I want to create another tab in inside the tab as dynamic tab links... as in the picture showed in my query....Can u tell me how to do that...
|
This is my code I tried for getting dynamic links but I failed in doing so..can u please check my code nd help me in achieving this |
Hi Sai,
I am getting output for the example given in SAPUI5 demo kit.
But I want to create another tab in inside the tab as dynamic tab links... as in the picture showed in my query....Can u tell me how to do that...
|
This is my code I tried for getting dynamic links but I failed in doing so..can u please check my code nd help me in achieving this |
I am not planning to fetch data but I want only look and feel...Like...I want my output page to look like this
Only links.....Can we create a tab and pre define a tab under that??? and predefine some links under that tab???
Nothing to do with fetching data....
Or should I use any other control instead of this??
I am thinking this would be fine If I know creating tabs under tabs..and finally tree structure of links under the last stage.
Regards, Sindhu
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.