Module base.progress
Basic progress bar component
Functions
init(self, node, key, init_value) | Component init function |
empty(self) | Fill a progress bar and stop progress animation |
empty(self) | Empty a progress bar |
set_to(self, to) | Instant fill progress bar to value |
get(self) | Return current progress bar value |
set_steps(self, steps, callback) | Set points on progress bar to fire the callback |
to(self, to[, callback]) | Start animation of a progress bar |
Functions
- init(self, node, key, init_value)
-
Component init function
Parameters:
- empty(self)
-
Fill a progress bar and stop progress animation
Parameters:
- self table Component instance
- empty(self)
-
Empty a progress bar
Parameters:
- self table Component instance
- set_to(self, to)
-
Instant fill progress bar to value
Parameters:
- self table Component instance
- to number Progress bar value, from 0 to 1
- get(self)
-
Return current progress bar value
Parameters:
- self table Component instance
- set_steps(self, steps, callback)
-
Set points on progress bar to fire the callback
Parameters:
- to(self, to[, callback])
-
Start animation of a progress bar
Parameters:
- self table Component instance
- to number value between 0..1
- callback function Callback on animation ends (optional)