sepal_ui.sepalwidgets.btn.Btn#
- class sepal_ui.sepalwidgets.btn.Btn(**kwargs)[source]#
Custom process Btn filled with the provided text.
The color will be defaulted to ‘primary’ and can be changed afterward according to your need.
- Parameters:
msg (Unicode) – the text to display in the btn
gliph (Unicode) – the full name of any mdi/fa icon
text – the text to display in the btn
icon – the full name of any mdi/fa icon
kwargs (dict, optional) – any parameters from v.Btn. if set, ‘children’ will be overwritten.
Deprecated since version 2.13:
text
andicon
will be replaced bymsg
andgliph
to avoid duplicating ipyvuetify trait.Deprecated since version 2.14: Btn is not using a default
msg
anymor`.Attributes
gliph
the name of the icon
msg
the text of the btn
v_icon
the icon in the btn
Methods
Custom process Btn filled with the provided text.
Set a new icon.
Jump between two states : disabled and loading - enabled and not loading.
- Btn.__init__(msg='', gliph='', **kwargs)[source]#
Custom process Btn filled with the provided text.
The color will be defaulted to ‘primary’ and can be changed afterward according to your need.
- Parameters:
msg (str) – the text to display in the btn
gliph (str) – the full name of any mdi/fa icon
text – the text to display in the btn
icon – the full name of any mdi/fa icon
kwargs (dict, optional) – any parameters from v.Btn. if set, ‘children’ will be overwritten.
- Return type:
None
Deprecated since version 2.13:
text
andicon
will be replaced bymsg
andgliph
to avoid duplicating ipyvuetify trait.Deprecated since version 2.14: Btn is not using a default
msg
anymor`.