Manages global template settings.
Fires:
-
module:event-store#event:ModifyState for "GlobalSettings" and "FieldList" state
Listens to Events:
Example
var GlobalSettingsMenu = require('global-settings-menu.js');
// a generic Viewer constructor
function Viewer(opts) {
var myGlobalSettingsMenu = GlobaSettingsMenu(this, {
elem: document.getElementById('myGlobalSettingsMenu')
});
}
(require("global-settings-menu"))(viewer, options)
Creates the global settings menu module.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
viewer |
Core |
The core viewer to which the module will attach. |
||||||
options |
Object |
An options object. Properties
|
Fires:
-
module:event-store#event:ModifyState for "GlobalSettings" and "FieldList" state
Listens to Events:
Example
var GlobalSettingsMenu = require('global-settings-menu.js');
// a generic Viewer constructor
function Viewer(opts) {
var myGlobalSettingsMenu = GlobaSettingsMenu(this, {
elem: document.getElementById('myGlobalSettingsMenu')
});
}
(require("global-settings-menu"))(viewer, options)
Creates the global settings menu module.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
viewer |
Core |
The core viewer to which the module will attach. |
||||||
options |
Object |
An options object. Properties
|
Fires:
-
module:event-store#event:ModifyState for "GlobalSettings" and "FieldList" state
Listens to Events:
Example
var GlobalSettingsMenu = require('global-settings-menu.js');
// a generic Viewer constructor
function Viewer(opts) {
var myGlobalSettingsMenu = GlobaSettingsMenu(this, {
elem: document.getElementById('myGlobalSettingsMenu')
});
}
(require("global-settings-menu"))(viewer, options)
Creates the global settings menu module.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
viewer |
Core |
The core viewer to which the module will attach. |
||||||
options |
Object |
An options object. Properties
|
Methods
destroy()
Destroys the module.
destroy()
Destroys the module.
destroy()
Destroys the module.