Constructor
new OccupantEntityWidgets(entity_type, label, textbox, tag, hoveropt)
- Source:
Example
let entity_widget = new OccupantEntityWidgets(occupant_entity.entity_type, label, textbox, occupant_entity.tag, occupant_entity.hover);
let head_node_entity_widget = new OccupantEntityWidgets(OccupantEntity.NODE, label, textbox, OccupantEntity.HEAD_NODE, "??HEAD0000H3ACX");
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
entity_type |
string | Entity type constant | ||
label |
Widget | The entity label widget | ||
textbox |
Widget | The entity textbox widget | ||
tag |
string | The entity tag | ||
hover |
string |
<optional> |
""
|
The entity label hover text |
Extends
Members
entity_type :string
- Description:
- Entity type constant
- Source:
- Overrides:
Entity type constant
Type:
- string
hover :string
- Description:
- The hover text for the label
- Source:
- Overrides:
The hover text for the label
Type:
- string
label :Widget
- Description:
- The entity label widget
- Source:
- Overrides:
The entity label widget
Type:
- Widget
tag :string
- Description:
- The entity tag
- Source:
- Overrides:
The entity tag
Type:
- string
textbox :Widget
- Description:
- The entity textbox widget
- Source:
- Overrides:
The entity textbox widget
Type:
- Widget
valid_tags :Array.<string>
- Description:
- The valid tags
- Source:
- Overrides:
The valid tags
Type:
- Array.<string>
Methods
Hide()
- Description:
- Hide the label and textbox widgets
- Source:
- Overrides:
Example
entity_widgets.Hide();
Show()
- Description:
- Show the label and textbox widgets
- Source:
- Overrides:
Example
entity_widgets.Show();