gxp.plugins.Timeline¶
-
class
gxp.plugins.Timeline(config)¶ Provides an action to display a legend in a new window.
Config Options¶
Configuration properties in addition to those listed for Ext.util.Observable.
-
actions ArrayCustom actions for tools that do not provide their own. Array elements are expected to be valid Ext config objects or strings referencing a valid Ext component. Actions provided here may have additionalmenuTextandbuttonTextproperties. The former will be used as text when the action is used in a menu. The latter will be conditionally used on buttons, only ifshowButtonTextis set to true. The nativetextproperty will unconditionally be used for buttons. Optional, only needed to create custom actions.
-
actionTarget ObjectorStringorArrayWhere to place the tool’s actions (e.g. buttons or menus)? Use null as the default since our tool has both output and action(s).
-
autoActivate BooleanSet to false if the tool should be initialized without activating it. Default is true.
-
controlOptions ObjectIf this tool is associated with anOpenLayers.Controlthen this is an optional object to pass to the constructor of the associatedOpenLayers.Control.
-
defaultAction NumberOptional index of an action that should be active by default. Only works for actions that are aGeoExt.Actioninstance.
-
menuText StringText for legend menu item (i18n).
-
outputAction NumberTheactionsarray index of the action that should trigger this tool’s output. Only valid ifactionsis configured. Leave this unconfigured if none of theactionsshould trigger this tool’s output.
-
outputConfig ObjectOptional configuration for the output container. This may be useful to override the xtype (e.g. “window” instead of “gx_popup”), or to provide layout configurations when rendering to anoutputTarget.
-
outputTarget StringWhere to add the tool’s output container? This can be any string that references anExt.Containerproperty on the portal, or “map” to access the viewer’s main map. If not provided, a window will be created. To reference one of the toolbars of anExt.Panel, ”.tbar”, ”.bbar” or ”.fbar” has to be appended.
-
playbackTool StringId of the playback tool to which the timeline has to bind.
-
showButtonText Show the
buttonTextan action is configured with, if used as a button. Default is false.
-
toggleGroup StringIf this tool should be radio-button style toggled with other tools, this string is to identify the toggle group.
-
tooltip StringText for legend action tooltip (i18n).
Public Properties¶
Public properties in addition to those listed for Ext.util.Observable.
-
Timeline.active¶ BooleanIs the tool currently active?
Public Methods¶
Public methods in addition to those listed for Ext.util.Observable.
-
Timeline.activate()¶ Returns: Booleantrue when this tool was activatedActivates this tool.
-
Timeline.addActions()¶
-
Timeline.addOutput()¶ Parameters: config – Objectconfiguration for theExt.Componentto be added to theoutputTarget. Properties of this configuration will be overridden by the applicationsoutputConfigfor the tool instance. Tool plugins that want to reuse their output (after being closed by a window or crumb panel) can also provide anExt.Componentinstance here, if it was previously created withaddOutput.Returns: Ext.ComponentThe component added to theoutputTarget.Adds output to the tool’s
outputTarget. This method is meant to be called and/or overridden by subclasses.
-
Timeline.deactivate()¶ Returns: Booleantrue when this tool was deactivatedDeactivates this tool.
-
Timeline.getState()¶ :returns {Object} - initial config plus any user configured settings
Tool specific implementation of the getState function
-
Timeline.getTimelinePanel()¶ Returns: gxp.TimelinePanelGet the timeline panel associated with this timeline plugin.
-
Timeline.removeOutput()¶ Removes all output created by this tool
Events¶
Events in addition to those listed for Ext.util.Observable.
-
activate Fired when the tool is activated.
Listener arguments: * tool -
gxp.plugins.Toolthe activated tool
-
deactivate Fired when the tool is deactivated.
Listener arguments: * tool -
gxp.plugins.Toolthe deactivated tool