new MagicButton(nom, des, pos, sem, color)
Creates a WIND.Text.MagicButton object.
Parameters:
Name | Type | Description |
---|---|---|
nom |
string | The name of the tool. |
des |
string | The description of the tool. |
pos |
string | The position of the tool ("bottom", "top", "left", "right"). |
sem |
string | Semantic of the annotations created by the tool. |
color |
string | Color of the tool. |
Example
var button = new WIND.Text.MagicButton("Lieux", "Choisir des lieux dans le texte", "bottom", "place", "red");
Methods
-
activate()
-
Activate the tool.
Example
var button = new WIND.Text.MagicButton("Lieux", "Choisir des lieux dans le texte", "bottom", "place", "red"); button.activate();
-
desactivate()
-
Desactivate the tool.
Example
var button = new WIND.Text.MagicButton("Lieux", "Choisir des lieux dans le texte", "bottom", "place", "red"); button.desactivate();