Constructor
new PopupHeader(target)
Constructs a new PopupHeader instance.
Parameters:
Name | Type | Description |
---|---|---|
target |
HTMLElement | The target element to attach the popup header to. |
- Source:
Extends
- UiElement
Methods
addLayer(layer)
Adds a layer to the popup header.
Parameters:
Name | Type | Description |
---|---|---|
layer |
Object | The layer to add. |
- Source:
initDropdown()
Initializes the dropdown menu in the popup header.
- Source:
reset()
Resets the popup header to its initial state.
- Source:
setItemContent_(element, options)
Sets the content of a popup item element.
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element |
HTMLElement | The popup item element. | ||||||||||||||||
options |
Object | The options for the item content.
Properties
|
- Source:
setLayer(layer, titleopt)
Sets the active layer in the popup header.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
Object | The layer to set as active. | |
title |
string |
<optional> |
The title to display for the active layer. |
- Source: