DIR : /home/kozerus/public_html/pn/uize/site-source/examples/two-hierarchical-selectors.html

/home/kozerus/public_html/pn/uize/site-source/examples

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Two Hierarchical Selectors | JavaScript Examples | UIZE JavaScript Framework</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="keywords" content="form Uize.Widget.Tree.Select"/>
	<meta name="description" content="See a demo of two instances of the tree select widget used side-by-side - one lets the user select an animal, the other lets the user select a plant."/>
	<link rel="alternate" type="application/rss+xml" title="UIZE JavaScript Framework - Latest News" href="http://www.uize.com/latest-news.rss"/>
	<link rel="stylesheet" href="../css/page.css"/>
	<link rel="stylesheet" href="../css/page.example.css"/>
	<style type="text/css">
		select {
			display:block;
			width:200px;
			margin:3px;
		}
</style>
</head>

<body>

<script type="text/javascript" src="../js/Uize.js"></script>

<h1 class="header">
	<a id="page-homeLink" href="../index.html" title="UIZE JavaScript Framework home"></a>
	<a href="../index.html" class="homeLinkText" title="UIZE JavaScript Framework home">UIZE JavaScript Framework</a>
</h1>

<div class="main">
	<h1 class="document-title">
		<a href="../javascript-examples.html" class="breadcrumb breadcrumbWithArrow">JAVASCRIPT EXAMPLES</a>
		Two Hierarchical Selectors
		<div class="pageActionsShell">
			<div id="page-actions" class="pageActions"><a href="source-code/two-hierarchical-selectors.html" class="buttonLink">SOURCE</a></div>
		</div>
	</h1>

	<!-- select nodes that make up the UI of the Uize.Widget.SelectTree object -->

	<br/>
	<form>
	<table border="0" cellspacing="3" cellpadding="0" style="margin:auto;">
		<tr class="headings">
			<td>ANIMALS</td>
			<td>PLANTS</td>
		</tr>
		<tr valign="top">
			<td>
				<select id="page_animalsSelectTree-level1"></select>
				<select id="page_animalsSelectTree-level2"></select>
				<select id="page_animalsSelectTree-level3"></select>
				<select id="page_animalsSelectTree-level4"></select>
				<select id="page_animalsSelectTree-level5"></select>
			</td>
			<td>
				<select id="page_plantsSelectTree-level1"></select>
				<select id="page_plantsSelectTree-level2"></select>
				<select id="page_plantsSelectTree-level3"></select>
				<select id="page_plantsSelectTree-level4"></select>
				<select id="page_plantsSelectTree-level5"></select>
			</td>
		</tr>
	</table>
	</form>
</div>

<!-- JavaScript code to make the static tree select UI "come alive" -->

<script type="text/javascript">

Uize.require (
	[
		'UizeSite.Page.Example.library',
		'UizeSite.Page.Example',
		'Uize.Widget.Tree.Select',
		'Uize.Test.TestData.Animals',
		'Uize.Test.TestData.Plants'
	],
	function () {
		'use strict';

		/*** create the example page widget ***/
			var page = window.page = UizeSite.Page.Example ();

		/*** add the Uize.Widget.Tree.Select child widgets ***/
			page.addChild ('animalsSelectTree',Uize.Widget.Tree.Select,{items:Uize.Test.TestData.Animals ()});
			page.addChild ('plantsSelectTree',Uize.Widget.Tree.Select,{items:Uize.Test.TestData.Plants ()});

		/*** wire up the page widget ***/
			page.wireUi ();
	}
);

</script>

</body>
</html>

//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer