110 строки
4.4 KiB
HTML
110 строки
4.4 KiB
HTML
|
<!doctype html>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<title>Essential JS 1 : Splitter with other widgets</title>
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
|
|||
|
<link href="../content/bootstrap.min.css" rel="stylesheet">
|
|||
|
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
|
|||
|
<link href="../content/default.css" rel="stylesheet" />
|
|||
|
<link href="../content/default-responsive.css" rel="stylesheet" />
|
|||
|
<!--[if lt IE 9]>
|
|||
|
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript" ></script>
|
|||
|
<![endif]-->
|
|||
|
<!--[if IE 9]><!-->
|
|||
|
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"> </script>
|
|||
|
<!--<![endif]-->
|
|||
|
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
|
|||
|
<script src="../scripts/properties.js" type="text/javascript"></script>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="content-container-fluid">
|
|||
|
<div class="row">
|
|||
|
<div class="cols-sample-area splitter-width">
|
|||
|
<!----------------Splitter Control---------------->
|
|||
|
<div id="outterSplitter">
|
|||
|
<div>
|
|||
|
<div class="cont">
|
|||
|
<h3 class="h3">FRENCH CITIES</h3>
|
|||
|
<ul id="treeView" class="visibleHide">
|
|||
|
<li>PARIS
|
|||
|
<ul>
|
|||
|
<li id="paris" class="_child">Speciality</li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li>CAMEMBERT
|
|||
|
<ul>
|
|||
|
<li id="camembert" class="_child">Speciality </li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li>GRENOBLE
|
|||
|
<ul>
|
|||
|
<li id="grenoble" class="_child">Speciality</li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div>
|
|||
|
<div class="cont">
|
|||
|
<div class="_content">
|
|||
|
Select any city from the tree to show the description.
|
|||
|
</div>
|
|||
|
<div class="paris spe">
|
|||
|
<h3>PARIS</h3>
|
|||
|
Paris, the city of lights and love - this short guide is full of ideas for how to make the most of the romanticism...
|
|||
|
</div>
|
|||
|
<div class="camembert spe">
|
|||
|
<h3>CAMEMBERT</h3>
|
|||
|
The village in the Orne département of Normandy where the famous French cheese is originated from.
|
|||
|
</div>
|
|||
|
<div class="grenoble spe">
|
|||
|
<h3>GRENOBLE</h3>
|
|||
|
The capital city of the French Alps and a major scientific center surrounded by many ski resorts, host of the Winter Olympics in 1968.
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<!------------------------------------------------->
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script type="text/javascript">
|
|||
|
$(function () {
|
|||
|
$("#treeView").ejTreeView({ nodeSelect: "treeClicked"});
|
|||
|
|
|||
|
$("#outterSplitter").ejSplitter({
|
|||
|
height: 280, width: 485,
|
|||
|
properties: [{ paneSize: "50%" }, {}],
|
|||
|
enableAutoResize: true
|
|||
|
});
|
|||
|
});
|
|||
|
function treeClicked(sender, args) {
|
|||
|
if (sender.currentElement.hasClass('_child')) {
|
|||
|
var content = $('.' + sender.currentElement[0].id).html();
|
|||
|
$('._content').html(content);
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
<style type="text/css" class="cssStyles">
|
|||
|
.cont {
|
|||
|
padding: 20px;
|
|||
|
min-width: 50px;
|
|||
|
}
|
|||
|
|
|||
|
.cont #treeView_Container {
|
|||
|
margin-bottom: 0;
|
|||
|
border: none;
|
|||
|
}
|
|||
|
|
|||
|
.h3 {
|
|||
|
font-size: 14px;
|
|||
|
margin: 0;
|
|||
|
}
|
|||
|
|
|||
|
.spe {
|
|||
|
display: none;
|
|||
|
}
|
|||
|
</style>
|
|||
|
</body>
|
|||
|
</html>
|