See the MomentCell section in the documentation.
cloudflarearchive / backgrid-moment-cell Goto Github PK
View Code? Open in Web Editor NEWBackgrid.js datetime cell type using moment.js
Home Page: http://backgridjs.com
License: MIT License
Backgrid.js datetime cell type using moment.js
Home Page: http://backgridjs.com
License: MIT License
See the MomentCell section in the documentation.
Hi,
I can't find a way to fix this issue. I use BackgridMomentCell to format a date column in my table.
I also use require.js / almond.js
Before compiling all my js files in one everythn works like a charm.
After compiling BackgridMomentCell throw a "Uncaught ReferenceError: moment is not defined "
http://stackoverflow.com/questions/21086173/moment-js-undefined-after-r-js-building
The plugin should use moment.locale when it is available instead of the deprecated moment.lang
I would like to format some dates, non editable like "3 hours ago".
Moment cell renders properly but if the moment cell is based on a string - the sorting still seems to behave improperly. I would expect moment cells to be sorted by date but the sorting seems to continue to sort by model CID (order of creation). Not sure if moment cell should convert moment object to UTC number and use that as a sortValue config.
Example code to follow but was able to replicate even on backgrid docs site.
Throws
Uncaught TypeError: object is not a function
in this line
this.formatter = new this.formatter(_.extend({}, formatterDefaults, classAttrs, formatterOptions));
The tests seem to run fine locally in the terminal and the browser, but for some reason it's still failing on Travis-CI. Need to investigate this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.