Constructor
new Workspace(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
bu.WorkspaceOptions | Workspace options. |
- Source:
Extends
- ol.Object
Methods
disposeInternal()
- Source:
getLayout() → {bu.Layout}
Get the layout using bu.ViewType in the definition.
- Source:
Returns:
The current layout.
- Type
- bu.Layout
getTarget() → {Element|string|undefined}
Get the target in which the workspace is rendered. Note that this returns what is entered as an option or in setTarget: if that was an element, it returns an element; if a string, it returns that.
- Source:
Returns:
The Element or id of the Element that the workspace is rendered in.
- Type
- Element | string | undefined
getTargetElement() → {Element}
Get the DOM element into which this workspace is rendered. In contrast to
getTarget
this method always return an Element
, or null
if the
workspace has no target.
- Source:
Returns:
The element that the workspace is rendered in.
- Type
- Element
setTarget(target)
Set the target element to render this workspace into.
Parameters:
Name | Type | Description |
---|---|---|
target |
Element | string | undefined | The Element or id of the Element that the workspace is rendered in. |
- Source: