<!DOCTYPE HTML>
<script src="https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons,sap.m"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
<script>
sap.ui.localResources("tabstrip");
var view = sap.ui.view({id:"idfirst1", viewName:"tabstrip.first", type:sap.ui.core.mvc.ViewType.JS});
view.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
JavaScript
var oModel = new sap.ui.model.json.JSONModel();
oModel.setData(
{
name : "SAP",
password : "SCN",
}
);
sap.ui.getCore().setModel(oModel);
var oTabStrip1 = new sap.ui.commons.TabStrip("TabStrip1");
oTabStrip1.setWidth("400px");
oTabStrip1.setHeight("200px");
var flexbox=new sap.m.FlexBox({direction:"Column"});
flexbox.addItem( new sap.m.Input("name",{placeholder:"Enter UserName", value : "{/name}" }));
flexbox.addItem( new sap.m.Input("password",{placeholder:"Enter Password",value : "{/password}"}));
oTabStrip1.createTab("General Data",flexbox);
oTab2 = new sap.ui.commons.Tab("tab2");
oTab2.setTitle(new sap.ui.core.Title("Title2",{text:"tab2"}));
var label = new sap.m.Label("labelid", {text : "in the second tab strip"});
oTab2.addContent(label);
oTabStrip1.addTab(oTab2);
oTabStrip1.placeAt("content");
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.