Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dragStart event? #677

Closed
shaekuronen opened this issue Jul 8, 2014 · 2 comments
Closed

dragStart event? #677

shaekuronen opened this issue Jul 8, 2014 · 2 comments

Comments

@shaekuronen
Copy link

Hi, I'm having similar issues to those referenced in #215. Would like to expand table container when column resized (have overflow scroll on the table parent)

seems like dragStart would work great, but not seeing how to hook into w/ Tablesorter

Thanks!

@Mottie
Copy link
Owner

Mottie commented Jul 8, 2014

Hi @shaekuronen!

I don't have any triggered events included when the user starts dragging the resizer; I wouldn't mind adding them if needed.

In the mean time, you can probably bind to the "mousedown" event on the resizable handle (demo):

$(function () {
    $('table').tablesorter({
        theme: 'blue',
        widgets: ['resizable'],
        initialized: function (table) {
            $(table).find('.tablesorter-resizer').on('mousedown', function(){
                console.log('dragStart');
                $(table).trigger('dragStart');
            });                                         
        }
    });
});

@Mottie
Copy link
Owner

Mottie commented Aug 2, 2014

I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue this discussion.

@Mottie Mottie closed this as completed Aug 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants