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

Make an integer editor for node actions. #18

Open
Pacane opened this issue Mar 2, 2016 · 0 comments
Open

Make an integer editor for node actions. #18

Pacane opened this issue Mar 2, 2016 · 0 comments

Comments

@Pacane
Copy link
Contributor

Pacane commented Mar 2, 2016

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.

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