Module druid.progress

Basic progress bar component

Functions

empty(self) Empty a progress bar
empty(self) Fill a progress bar and stop progress animation
get(self) Return current progress bar value
init(self, node, key, init_value) Component init function
set_steps(self, steps, callback) Set points on progress bar to fire the callback
set_to(self, to) Instant fill progress bar to value
to(self, to[, callback]) Start animation of a progress bar


Functions

empty(self)
Empty a progress bar

Parameters:

  • self table Component instance
empty(self)
Fill a progress bar and stop progress animation

Parameters:

  • self table Component instance
get(self)
Return current progress bar value

Parameters:

  • self table Component instance
init(self, node, key, init_value)
Component init function

Parameters:

  • self table Component instance
  • node string or node Progress bar fill node or node name
  • key string Progress bar direction (x or y)
  • init_value number Initial value of progress bar
set_steps(self, steps, callback)
Set points on progress bar to fire the callback

Parameters:

  • self table Component instance
  • steps table Array of progress bar values
  • callback function Callback on intersect step value
set_to(self, to)
Instant fill progress bar to value

Parameters:

  • self table Component instance
  • to number Progress bar value, from 0 to 1
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)
generated by LDoc 1.4.6 Last updated 2020-02-23 13:01:03