Sha256: 8bb2fd7e1b74705c0b592a75fb214df55e7e2af0ffc293ac56818cf6c9e07ffd

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

$(document).ready(function(){
		
	// first example
	$("#navigation").treeview({
		persist: "location",
		collapsed: true,
		unique: true
	});
	
	// second example
	$("#browser").treeview();
	$("#add").click(function() {
		var branches = $("<li><span class='folder'>New Sublist</span><ul>" + 
			"<li><span class='file'>Item1</span></li>" + 
			"<li><span class='file'>Item2</span></li></ul></li>").appendTo("#browser");
		$("#browser").treeview({
			add: branches
		});
		branches = $("<li class='closed'><span class='folder'>New Sublist</span><ul><li><span class='file'>Item1</span></li><li><span class='file'>Item2</span></li></ul></li>").prependTo("#folder21");
		$("#browser").treeview({
			add: branches
		});
	});
	
	// third example
	$("#red").treeview({
		animated: "fast",
		collapsed: true,
		unique: true,
		persist: "cookie",
		toggle: function() {
			window.console && console.log("%o was toggled", this);
		}
	});
	
	// fourth example
	$("#black, #gray").treeview({
		control: "#treecontrol",
		persist: "cookie",
		cookieId: "treeview-black"
	});

});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iqvoc-3.2.11 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.10 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.9 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.8 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.7 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.6 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.5 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.4 public/javascripts/iqvoc/jquery-treeview/demo/demo.js
iqvoc-3.2.3 public/javascripts/iqvoc/jquery-treeview/demo/demo.js