Skip to content

mangonugen/jQueryListview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQueryListview

This jQuery plugin is currently incomplete.

Example 1
<div id="listView" style="width: 150px; height: 150px;"></div>
var item = function(id, value) {
	this.id = id;
	this.value = value;
};
		
$(function() {
	var arrData = new Array();
	for (var i = 0; i < 10; i++) {
		arrData[i] = 'item ' + (i + 1);

		var data = new item(i, 'item ' + (i + 1));
		arrData[i] = data;
	}

	//var jsonString = JSON.stringify(arrData);
	var optItems = [
		{ id: "id", width: 40, formatter: ListView.Formatters.SpanDisplay},
		{ id: "value", width: 60, cssClass: "cell-title class2", formatter: ListView.Formatters.SpanDisplay}
	];

	$('#listView').listView({
		data: arrData,
		optionItems: optItems,
		pScrollEnable: true
	});
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published