You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excellent job with this TagHelper for Pagination. I found it very useful for paging, especially the Ajax control.
Can this be extended to add some custom attributes? e.g. data-ajax-success and data-ajax-failure
Basically, I was looking to smooth scroll to the top of the page/div when using Ajax but I need a 'data-ajax-success' attribute..
Hi Joe,
Excellent job with this TagHelper for Pagination. I found it very useful for paging, especially the Ajax control.
Can this be extended to add some custom attributes? e.g. data-ajax-success and data-ajax-failure
Basically, I was looking to smooth scroll to the top of the page/div when using Ajax but I need a 'data-ajax-success' attribute..
I've took a local copy down to try out..
Added to your PagerTagHelper.cs:
then just added a simple if statement to add the attributes :
Its handy to use as below:
with the simple JS function to auto-scroll to the top of the div:
Is this the best way to do this?
The text was updated successfully, but these errors were encountered: