Fork me on GitHub

'Redraw Callback' Function

'Redraw Callback' function occurs on every jplist action like sort, filter, pagination etc.

<script type="text/javascript">	
	$('document').ready(function(){
	
		$('#demo').jplist({
			itemsBox: '.list' //items container jQuery path
			,itemPath: '.list-item' //jQuery path to the item within the items container
			,panelPath: '.panel' //panel jQuery path
			
			,redrawCallback: function(collection, $dataview, statuses){
				
                //this code occurs on every jplist action
                console.log(collection);
			}						
		});
	});
</script>