mutators doesn't work as shown
See original GitHub issueI 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:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😃
@olifolkerd
You keep saying I’m sarcastic, but I simply do not see that and do not recognize that description of myself.
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.