EditorLauncher

Type class

Main class to control amCharts 4 Editor in a bigger solution.

Sources

EditorLauncher can be used (imported) via one of the following packages.

// EditorLauncher is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Import from: "editor.ts"
 * Use like: am4editor.EditorLauncher
 * --------------------------------------------------------
 */
import * as am4editor from "@amcharts/editor4";

// EditorLauncher is available in all of the following modules.
// You only need to import one of them.

/**
 * --------------------------------------------------------
 * Include via: <script src="editor.js"></script>
 * Access items like: am4editor.EditorLauncher
 * --------------------------------------------------------
 */

Inheritance

EditorLauncher does not extend any other symbol.

EditorLauncher is not extended by any other symbol.

Properties

editorConfig
#

Type IConfig

Get editor configuration settings.

Set editor configuration settings.

editorUrl
#

Type string

Get URI for the editor application Set URI for the editor application

target
#

Type ILauncherTarget

Get target settings for how to open the editor window.

Set target settings for how to open the editor window.

Methods

addEventListener(

eventType: LauncherEventType,
listener: LauncherEventHandler

)

#

Returns void

Add event listener for Launcher events ('save' or 'close')

close()

#

Returns void

Closes Editor windows and cleans up if needed

constructor(

launcherConfig?: ILauncherConfig

)

#

Returns EditorLauncher

Creates an instance of EditorLauncher.

launch(

chartConfig?: object

)

#

Returns void

Launches amCharts 4 Editor with specified configuration.

removeEventListener(

eventType: LauncherEventType,
listener: LauncherEventHandler

)

#

Returns void

Remove event listener for Launcher events

Events

EditorLauncher does not have any events.

Adapters

EditorLauncher does not have any adapters.