Type class
Settings, states, adapters and events shared by many objects, such as all columns of a series. A setting on the template reaches every object that uses it, unless the object has its own value.
Sources
Template can be used (imported) via one of the following packages.
// Import Template
import * as am5 from "@amcharts/amcharts5";
// Create Template
am5.Template.new(root, {
// ... config if applicable
});
<!-- Load Template -->
<script src="index.js"></script>
<script>
// Create Template
am5.Template.new(root, {
// ... config if applicable
});
</script>
Inheritance
Template does not extend any other symbol.
Template is not extended by any other symbol.
Settings
Template does not have any settings.
Private settings
Template does not have any private settings.
Properties
|
adapters # |
Type Default Adapters added to the objects that use the template. |
|---|---|
|
entities # |
Type The objects that use the template. |
|
events # |
Type Default Event listeners added to the objects that use the template. |
|
setup # |
Type ( entity: A function called once for each object that uses the template, when the template is first applied to it. |
|
states # |
Type Default States passed on to the objects that use the template. |
Methods
|
constructor( settings: ) |
Returns |
|---|---|
|
dispose() |
Returns Disposes the template, along with any disposable objects in its settings. |
|
get( key: ) |
Returns Returns the template's value of setting |
|
getPrivate( key: ) |
Returns Returns the template's value of private setting |
|
isDisposed() |
Returns Returns |
|
new( settings: ) |
Static Returns Creates a template with Click here for more info |
|
on( key: ) |
Returns Calls |
|
onPrivate( key: ) |
Returns Calls |
|
remove( key: ) |
Returns Removes setting |
|
removeAll() |
Returns Removes all settings from the template, as |
|
removePrivate( key: ) |
Returns Removes private setting |
|
set( key: ) |
Returns Sets setting |
|
setAll( value: ) |
Returns Sets several settings at once, as |
|
setPrivate( key: ) |
Returns Sets private setting |
|
setPrivateRaw( key: ) |
Returns Sets private setting |
|
setRaw( key: ) |
Returns Sets setting |
Events
Template does not have any events.