sepal_ui.sepalwidgets.widget.CopyToClip#

class sepal_ui.sepalwidgets.widget.CopyToClip(**kwargs)[source]#

New in version 2.2.0: New clipping widget

Custom textField that provides a handy copy-to-clipboard javascript behaviour.

When the clipboard btn is clicked the v_model will be copied in the local browser clipboard. You just have to change the clipboard v_model. when copied, the icon change from a copy to a check.

Parameters:

kwargs – any argument that can be used with a v.TextField

Attributes

tf

the textfield widget that holds the v_model to copy

v_model

a v_model trait that embed the string to copy

Methods

__init__

Custom textField that provides a handy copy-to-clipboard javascript behaviour.

CopyToClip.__init__(**kwargs)[source]#

Custom textField that provides a handy copy-to-clipboard javascript behaviour.

When the clipboard btn is clicked the v_model will be copied in the local browser clipboard. You just have to change the clipboard v_model. when copied, the icon change from a copy to a check.

Parameters:

kwargs – any argument that can be used with a v.TextField

Return type:

None