Fork me on GitHub

jQuery jPList plugin is deprecated. Please check pure JavaScript (ES6) jPList Library alternative instead.

'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>