#128 element changes and show number after setting min/max for spinbox
This commit is contained in:
@@ -178,6 +178,16 @@ function element.new(args)
|
||||
function protected.set_value(value)
|
||||
end
|
||||
|
||||
-- set minimum input value
|
||||
---@param min integer minimum allowed value
|
||||
function protected.set_min(min)
|
||||
end
|
||||
|
||||
-- set maximum input value
|
||||
---@param max integer maximum allowed value
|
||||
function protected.set_max(max)
|
||||
end
|
||||
|
||||
-- enable the control
|
||||
function protected.enable()
|
||||
end
|
||||
@@ -316,6 +326,18 @@ function element.new(args)
|
||||
protected.set_value(value)
|
||||
end
|
||||
|
||||
-- set minimum input value
|
||||
---@param min integer minimum allowed value
|
||||
function public.set_min(min)
|
||||
protected.set_min(min)
|
||||
end
|
||||
|
||||
-- set maximum input value
|
||||
---@param max integer maximum allowed value
|
||||
function public.set_max(max)
|
||||
protected.set_max(max)
|
||||
end
|
||||
|
||||
-- enable the element
|
||||
function public.enable()
|
||||
protected.enabled = true
|
||||
|
||||
Reference in New Issue
Block a user