Related¶
This plugin manages the related views that a particular view may have. A related view could be, for example, a seat view related to a vip room.
A view may have multiple related views or none. They have an unique identifier name.
- Plugin name:
"related"
- Plugin namespace:
"related"
Dependencies¶
This plugin has no dependencies.
Loading the plugin¶
If this plugin is loaded, the module will have the following additional features:
Methods¶
getRelatedViews()¶
If the current view has related views, it will return an object with the
related views. Otherwise it will return null
.
Output
An object with the identifier name of the related view as key and the result of getRelatedViewByName as value.
Example
getRelatedViewByName()¶
Returns the related view by its identifier name. If it does not exist, it will return null
.
Input
name_id
(string): unique identifier name of the related view.
Output
related_view
(null|object): It will returnnull
if it does not exist. If it exists, it will return an object with the following properties:venue_id
(string): venue id of the related view.view_id
(string): unique identifier of the related view to be loaded with loadView3d.label
(string|null): Description label of the related view.
This object can be used as input for loadView3d.