From 667db83ab72173c17ff46ec83c6c2969ddb18cd3 Mon Sep 17 00:00:00 2001 From: Thomas Croft Date: Sun, 2 Oct 2022 20:50:20 -0600 Subject: [PATCH] Added silder:set_value documentation --- lib/wibox/widget/slider.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/wibox/widget/slider.lua b/lib/wibox/widget/slider.lua index 789e902ac..4dea75c62 100644 --- a/lib/wibox/widget/slider.lua +++ b/lib/wibox/widget/slider.lua @@ -324,6 +324,12 @@ for prop in pairs(properties) do end -- Add some validation to set_value + +--- Set the slider's value +-- @tparam number number Set value to number +-- @method set_value number +-- @noreturn + function slider:set_value(value) value = math.min(value, self:get_maximum()) value = math.max(value, self:get_minimum())