Skip to content

Added a callback function for the pager plugin when the table refresh#62

Open
Morialkar wants to merge 1 commit into
christianbach:masterfrom
iTxTechnologies:master
Open

Added a callback function for the pager plugin when the table refresh#62
Morialkar wants to merge 1 commit into
christianbach:masterfrom
iTxTechnologies:master

Conversation

@Morialkar

Copy link
Copy Markdown

I had a table with button in the rows and when the page changed, the bindings were destroyed, so I added a callback that hooks in the updatePageDisplay function to insert the bindings.

@Mottie

Mottie commented Jun 13, 2015

Copy link
Copy Markdown
Collaborator

It would be better to bind to elements using delegated events instead of rebinding on every page change, e.g.

$( 'tbody' ).on( 'click', 'button', function(){
  // do something when a button is clicked 
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants