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

Text-extraction with math-widget #1098

Closed
doArcanjo opened this issue Dec 9, 2015 · 4 comments
Closed

Text-extraction with math-widget #1098

doArcanjo opened this issue Dec 9, 2015 · 4 comments

Comments

@doArcanjo
Copy link

Hi!

I would like to retrieve the value from an input (inside the cell) and use the value in math widget.

To filter this column we use .group-input, to return it's value:

textExtraction: {
            '.group-input': function(o) {
                return $(o).find("input").val();
            }
        },

The value returned from a custom equation

$.tablesorter.equations['weight_input'] = function(arry) { console.log(ary)}
is [0,0,0] when there are 3 cells at the target column;

Thank you

@Mottie
Copy link
Owner

Mottie commented Dec 9, 2015

Hi @doArcanjo!

Yes, it looks like I haven't updated the internal math code to use the textExtraction function. I'll get that fixed in the master branch momentarily.

Please let me know if this solves the issue for you.

@doArcanjo
Copy link
Author

Yes it does!
Thank you.

When do you preview a new release bower/npm version?

@Mottie
Copy link
Owner

Mottie commented Dec 10, 2015

I'm thinking this weekend

@doArcanjo
Copy link
Author

@Mottie
Excellent!

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