Error when using Formatter.DATETIME as a column format in Tabulator
See original GitHub issueThis is the error I am getting when trying to set format = Formatter.DATETIME in a ColumnDefinition:
Uncaught (in promise) ReferenceError: moment is not defined
at C.datetime (tabulator.min.js:11)
at C.formatValue (tabulator.min.js:11)
at l._generateContents (tabulator.min.js:8)
at l.setValueActual (tabulator.min.js:8)
at l.build (tabulator.min.js:8)
at new l (tabulator.min.js:8)
at t.i.generateCell (tabulator.min.js:6)
at eval (tabulator.min.js:6)
at Array.forEach (<anonymous>)
at t.generateCells (tabulator.min.js:6)
My Class has a date field of type pl.treksoft.kvision.types.Date
as I am using Ktor for my backend
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Formatting | Tabulator
Tabulator allows you to format your data in a wide variety of ways, so your tables can display information in a more graphical...
Read more >Tabulator Cell datetime object - Need to Format - Stack Overflow
Here is a snippet I have attempted. The table shows up with "blank rows." If I remove the formatting, the data shows correctly...
Read more >Use column formatting to customize SharePoint | Microsoft Learn
To apply formatting based on the value in a date/time field, apply the following patterns. Formatting an item when a date column is...
Read more >Easy Data Table Generator with JSON - Tabulator - jQuery Script
High performant large table based on virtual DOM; Column sorting; Custom data formatting; Resizable columns; Auto scaling to fit data/element ...
Read more >Tabulator does not show formatting when used in Column
I am using styling for displaying a dataframe using Tabulator. The example is from here Styling shows when I use styled.show() to display ......
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 FreeTop 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
Top GitHub Comments
Have you tried configuring webpack.ProvidePlugin? Here is the configuration for jQuery https://github.com/rjaros/kvision-examples/blob/master/template/webpack.config.d/jquery.js
Tabulator data/time functions (formatters, editors, validators etc) require moment.js library. I didn’t add it as a dependency in tabulator module, because it is quite large library and it makes the output js code size a lot bigger. So at the moment, if you need to use data/time functions, you can add this library directly into the main
index.html
page. In fact the showcase example includes this library.Of course I forgot to mention about it in the guide 😉