Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created February 13, 2017 07:19
Show Gist options
  • Select an option

  • Save stanwu/4603f5ac874c3d4230ab34e6e09fc35c to your computer and use it in GitHub Desktop.

Select an option

Save stanwu/4603f5ac874c3d4230ab34e6e09fc35c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Kendo UI Snippet</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.default.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.mobile.all.min.css">
<script src="http://code.jquery.com/jquery-1.12.3.min.js"></script>
<script src="http://kendo.cdn.telerik.com/2017.1.118/js/kendo.all.min.js"></script>
<script src="http://kendo.cdn.telerik.com/2017.1.118/js/angular.min.js"></script>
<script src="http://kendo.cdn.telerik.com/2017.1.118/js/jszip.min.js"></script>
</head>
<style>
html {
font:12px sans-serif;
}
.k-tabstrip ul li.k-item{
width: 100px;
color: black;
}
.k-tabstrip ul li.k-item.k-state-default {
background-color:#8888;
color: white !important;
height: 24px;
width: 120px;
margin-right: 0px;
background-image: none !important;
}
</style>
<body>
<!-- define the tabs content below -->
<div id="tabstrip">
<ul>
<li>Group</li>
<li>Subnet</li>
<li>Logic</li>
</ul>
<div id="treeview">Group View</div>
<div>Subnet VIew</div>
<div>Logic VIew</div>
</div>
<!-- start tabStrip below -->
<script>
var tabStrip = $("#tabstrip").kendoTabStrip({tabPosition: "left"}).data("kendoTabStrip");
tabStrip.select("li:first"); // Select by jQuery selector
//below is the group tab
$("#treeview").kendoTreeView({
animation: true,
dataSource: [
{ text: "foo", items: [
{ text: "bar1", items: [
{ text: "bar1-2" }
] }
] }
]});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment