You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please can we get some extra params for form field elements.
Current is as follows
local myField = form.addNumberField(line, nil, minValue, maxValue, function() return value end, function(newValue) value = newValue end)
Extend as follows
local myField = form.addNumberField(line, nil, minValue, maxValue, function() return value end, function(newValue) value = newValue end,function() return value end,function() return value end)
Essentially to do this:
line (FormLine): the line where the field should be added
rect (Rect): the coordinates
min (integer): the min value
max (integer): the max value
getValue (function): the function which will return the current value
setValue (function): the function which will be called on value change
onFocus (function): the function called when the field is selected (runs once)
offFocus(function): the function called when focus is removed from the field (runs once)
The text was updated successfully, but these errors were encountered:
Please can we get some extra params for form field elements.
Current is as follows
local myField = form.addNumberField(line, nil, minValue, maxValue, function() return value end, function(newValue) value = newValue end)
Extend as follows
local myField = form.addNumberField(line, nil, minValue, maxValue, function() return value end, function(newValue) value = newValue end,function() return value end,function() return value end)
Essentially to do this:
line (FormLine): the line where the field should be added
rect (Rect): the coordinates
min (integer): the min value
max (integer): the max value
getValue (function): the function which will return the current value
setValue (function): the function which will be called on value change
onFocus (function): the function called when the field is selected (runs once)
offFocus(function): the function called when focus is removed from the field (runs once)
The text was updated successfully, but these errors were encountered: