Module: lib-widget.progress_bar
Create a new progress_bar (like a slider, but you can't use it as an input)
Useful to display percentage data
-- make a progress bar and set it to 20% local bar = lib-widget.progress_bar() bar:set_value(20)
Class Hierarchy
- lib-widget.progress_bar
Info:
- Copyright: 2020 Tom Meyers
- Author: Tom Meyers
Static module functions
lib-widget.progress_bar.set_value (value) | Set the value of the progress_bar | |
lib-widget.progress_bar.get_value () | get the current value of the progress_bar |
Static module functions
- lib-widget.progress_bar.set_value (value)
-
Set the value of the progress_bar
Parameters:
- value number the value in percentage (0-100)
Usage:
-- Set the value of the progress_bar in percentage progress_bar:set_value()
- lib-widget.progress_bar.get_value ()
-
get the current value of the progress_bar
Usage:
-- Get the value of the progress_bar in percentage progress_bar:get_value()