StateBar#
Overview#
Statebar
is a custom widget to provide easy to use state bars in the sepal_ui framework. it inherits from the SepalWidget
class.
any argument from the original SystemBar
ipyvuetify class can be used to complement it.
from sepal_ui import sepalwidgets as sw
# correct colors for the documentation
# set to dark in SEPAL by default
import ipyvuetify as v
v.theme.dark = False
statebar = sw.StateBar()
statebar
Methods#
State bar can be stopped using the following code. The msg
can be changed according to your need.
Tip
You can also change the message without stopping the loading by omitting the second parameter
from sepal_ui import sepalwidgets as sw
# correct colors for the documentation
# set to dark in SEPAL by default
import ipyvuetify as v
v.theme.dark = False
statebar = sw.StateBar()
statebar.add_msg('ongoing', True)
Note
More information can be found here.