Selectable
Trace: » Get Started with .Net » Get Help Using Appcelerator Entourage » Get Started with Zend Framework » Entourage UI JavaScript API » Selectable

Selectable

Makes a list of items mouse and keyboard selectable. Options will vary by framework. The following example assumes jQuery as the selected framework.

Example Usage

One
Two
Three
Four

Source Code

<style>
	.box
	{
		border:1px solid #ccc;
		width:400px;
		height:40px;
		background-color:#eee;
		margin:10px;
		padding:10px;
	}
	.resize
	{
		background-color:#ffffcc !important;
	}
	.resize_border
	{
		border:1px solid #ff0000;
	}
</style>
 
<div behavior="selectable">
	<div class="box" 
		on="selecting then add[class=resize] or unselecting then remove[class=resize]">
		One
	</div>
	<div class="box" 
		on="selecting then add[class=resize] or unselecting then remove[class=resize]">
		Two
	</div>
	<div class="box" 
		on="selecting then add[class=resize] or unselecting then remove[class=resize]">
		Three
	</div>
	<div class="box" 
		on="selecting then add[class=resize] or unselecting then remove[class=resize]">
		Four
	</div>
</div>
ui/behaviorselectable.txt · Last modified: 2009/03/10 14:20 by jstahl