Column formatter property broken? #3385
              
                Unanswered
              
          
                  
                    
                      AYColumbia
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to right align my cell header and the row values since they're numeric so I found that I can add formatter and assign a function. Doing so, however, does NOT fire the function at all. I added a console.log and never saw a thing in the Console of dev tools. Is formatter supposed to work?
For now, I'm working around this by using the two properties below after digging into the source code.
When I had, for example,
{ ..., formatter: myFunction },myFunctionnever gets called.Version info:
+-- react-data-grid-addons@7.0.0-alpha.24
+-- react-data-grid@7.0.0-beta.40
+-- react-dom@18.2.0
Beta Was this translation helpful? Give feedback.
All reactions