Skip to content

Make an integer editor for node actions. #18

@Pacane

Description

@Pacane

Right now when I do

{
  'name': 'refreshRate',
  'type': 'number',
  'default': 30,
}

The editor gives a decimal step. I would think that by doing

{
  'name': 'refreshRate',
  'type': 'number',
  'default': 30,
  'editor': 'int'
}

or something like this would change the step, but no it doesn't. Although I can do the following

{
  'name': 'refreshRate',
  'type': 'int',
  'default': 30,
}

which will only allow integer values in the UI, but will send string value to the link.

So right now the only viable option I've had was to parse the double on the server and round it to an int.

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