Constructor
new MapAssetItemView()
- Since:
- Source:
Extends
Members
className
- Source:
events
- Source:
tagName
- Source:
Methods
focus()
Focus the layer selection button
- Source:
focusMove()
Focus the layer's Move button
- Source:
initialize(options)
Store the settings panel ID and listen for layer label changes.
Parameters:
| Name |
Type |
Description |
options |
object
|
The view options
Properties
| Name |
Type |
Description |
model |
MapAsset
|
The layer represented by this row |
panelId |
string
|
The workspace settings panel ID |
|
- Source:
moveAsset(event)
Request movement without selecting the layer.
Parameters:
| Name |
Type |
Description |
event |
Event
|
The Move button click |
- Source:
previewRemoval(event)
Preview the layer being removed while its control is hovered or focused.
Parameters:
| Name |
Type |
Description |
event |
Event
|
The pointer or focus change |
- Source:
removeAsset()
Request removal without mutating the asset
- Source:
Render controls without interpolating model-supplied text.
- Source:
Returns:
This view
-
Type
-
MapAssetItemView
selectAsset(event)
Request editing, carrying activation information for keyboard focus.
Parameters:
| Name |
Type |
Description |
event |
Event
|
The selection button click |
- Source:
setSelected(selected)
Present selection owned by the workspace.
Parameters:
| Name |
Type |
Description |
selected |
boolean
|
Whether this asset is being edited |
- Source:
template() → {string}
Create the layer's Move, selection, and Remove buttons.
- Source:
Returns:
The HTML string for the layer item
-
Type
-
string
updateLabel()
Update the label and the Move and Remove buttons' accessible names
- Source: