pysepal.sepalwidgets.btn.Btn#
- class pysepal.sepalwidgets.btn.Btn(*args, **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:
textandiconwill be replaced bymsgandgliphto avoid duplicating ipyvuetify trait.Deprecated since version 2.14: Btn is not using a default
msganymor`.Attributes
gliphthe name of the icon
msgthe text of the btn
v_iconthe 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:
textandiconwill be replaced bymsgandgliphto avoid duplicating ipyvuetify trait.Deprecated since version 2.14: Btn is not using a default
msganymor`.