Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting field as "format" fails #7

Open
Kilill opened this issue Feb 3, 2024 · 0 comments
Open

setting field as "format" fails #7

Kilill opened this issue Feb 3, 2024 · 0 comments

Comments

@Kilill
Copy link

Kilill commented Feb 3, 2024

Problem

Trying to set the format in a tabulator field to "format" fails and the logs says:

Uncaught (in promise) ReferenceError: moment is not defined
    at re.isoDateFormatter (gridedit.js:88:5)
    at re.formatValue (tabulator.min.js:2:235262)
    at tabulator.min.js:2:82738
    at Array.forEach (<anonymous>)
    at y._chain (tabulator.min.js:2:82708)
    at o.chain (tabulator.min.js:2:1177)
    at o._generateContents (tabulator.min.js:2:6020)
    at o.layoutElement (tabulator.min.js:2:7550)
    at o.setValueActual (tabulator.min.js:2:7513)
    at o.build (tabulator.min.js:2:5144)

Versions:

  • Saltcorn 0.9.4-beta.6
  • Node.js v20.11.0
  • Tabulator 0.7.10

Comment

This works on a normal Saltcorn list view field.
I assume that for some reason moment.js is not included somehow...
and being a newb at Saltcorn i have no clue where to kludge this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant