question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mutators doesn't work as shown

See original GitHub issue

I was trying to convert values from feet to meters using mutators according to your documentation, however it doesn’t work, but the formatters does. What’s going on?

// This doesn't work
Tabulator.extendExtension("mutator", "mutators", {
    ft2met:function(value, data, type, mutatorParams){
        return (value * 0.3048);
    },
});

// But this does!
Tabulator.extendExtension("format", "formatters", {
    ft2mt:function(cell, formatterParams){              // Feet to Meters
        return  (0.3048*cell.getValue()).toFixed(0);
    },
});

...

{title:"Alt [m]", field:"altitude", sortable:true,  responsive:0, formatter:"ft2mt", align:"right", sorter:"number"},  // works!
{title:"Alt [m]", field:"altitude", sortable:true,  responsive:0, align:"right", sorter:"number", mutateType:"data", mutator:ft2met}, // does not

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olifolkerdcommented, Feb 5, 2018

Hey @E3V3A

If you have found an error in the documentation could you let me know where it is and i will be happy to fix it.

That sort of thing is not included in the documentation because it is a fundamental precept of javascript development, im afraid the Tabulator site cannot offer tutorials how to use the language properly as that would be too wide a scope to cover.

also i would be appreciative if you would use slightly more pleasant phrasing in your posts to this board, a lot of the posts you have made today have been written in a demanding an accusatory way instead of just asking a simple question in a plain and friendly way,

This is a free open source project with a friendly and helpful community and you will get a much better response from people if you try and be respectful rather than derogatory.

Thousands of people use this library every day with out issue, and i understand in this case you have had trouble, but a bit of patience goes a long way.

Cheers

Oli 😃

0reactions
E3V3Acommented, Feb 6, 2018

@olifolkerd

but as i say there is no need for the sarcastic/condescending tone that has come with most of the posts.

You keep saying I’m sarcastic, but I simply do not see that and do not recognize that description of myself.

  • So I think you need to look up the definition of sarcasm. ⬅️ That is Condescension!

But then again those labels usually goes both ways. Telling a stranger they are being condescending and sarcastic is a passive aggressive and hidden type of condescension itself. So let’s just stop telling everyone what they are, and try to remain open for some good faith. People are different.

Again. Thanks a lot for your help, but it’s very unlikely I will file any further issues here again, given the attitude I receive along with it, here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eloquent's fillable not working with mutators - laravel
When I tried to use the fill() it doesn't call the mutators. But when I tried to set it 1 by 1 it...
Read more >
issue with mutators :: Ravenfield General Discussions
hey guys, my game is being weird. after a couple minutes in a game all mutators just stop working. other mods like weapon...
Read more >
Why won't my mutator work ? - UT99.org
U file and the int file, it all shows up, but just won't work. ... I am making a new class under mutators,...
Read more >
Livewire doesn't show value from mutator - Laracasts
Livewire doesn't show value from mutator. Hey guys,. I'm trying to bind a date field with laravel livewire. Basically I did the following:....
Read more >
Troubleshooting | Stryker Mutator
If that works, the next step would be to try the command yourself inside the ... file the mutants don't get killed but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found