Beta
Permanently destroy the component.
To fully allow Garbage-Collection to free the resources used by the component, make sure to remove any references to the component and its children in application code.
let chart = ...ChartXY()
let axisX = chart.getDefaultAxisX()
// Dispose Chart, and remove all references so that they can be garbage-collected.
chart.dispose()
chart = undefined
axisX = undefined
Object itself for fluent interface
Subscribe onDispose
event.
This event is triggered whenever the On-Screen-menu is disposed.
// Example usage
OSM.onDispose(() => {
console.log('OSM was disposed')
})
OSM.dispose()
Token of subscription
Event handler function
Set the position property for the div containing the OSM menu.
The OSMPosition where one wants to place the OnScreenMenu on the screen.
Main implementation for OnScreenMenu. This class handles the DOM creation, initialization and event wiring of the core OSM container.
This feature is considered experimental and might be changed in minor release.