Skip to content

How to pass a function to certain column formatting #37

Description

@jameshall9

Per the documentation here there is the ability to pass a function for certain parameters of the column formatter but when I try passing something like:

{"title":"Example", "field" : "example", "formatter" : "progress", "formatterParams" : { "min" : 0, "max" : 10, "color" : ["green", "orange", "red"], 'legend': "function(value) { return value + '%'; }" "legendColor" : "#000000", "legendAlign":"center", }}

I just end up with the table displaying the text "function(value) { return value + '%'; }" in each cell for that column.

This maybe a user error rather than a bug...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions