Skip to content

setting field as "format" fails #7

@Kilill

Description

@Kilill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions