Type class
A version of a OrderedList
that has a "template".
A template is an instance of an object, that can be used to create new elements in the list without actually needing to create instances for those.
When new element is created in the list, e.g. by calling its create()
method, an exact copy of the element is created (including properties and other attributes), inserted into the list and returned.
Sources
OrderedListTemplate can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.OrderedListTemplate * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
/** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.OrderedListTemplate * -------------------------------------------------------- */
Inheritance
OrderedListTemplate extends OrderedList
.
OrderedListTemplate is not extended by any other symbol.
Properties
events # |
Type Default Inherited from Event dispatcher. |
---|---|
first # |
Type Inherited from First item in the list. |
last # |
Type Inherited from Last item in the list. |
length # |
Type Inherited from Number of items in the list. @readonly |
template # |
Type A "template" object to copy all properties from when creating new list items. |
values # |
Type Inherited from All items of the list. Do not modify the list directly. Rather use |
There are 5 inherited items currently hidden from this list. |
Methods
[Symbol.iterator]() |
Returns Inherited from Returns an ES6 iterator for the list. |
---|---|
clear() |
Returns Inherited from Removes all items from the list. |
constructor( t: ) |
Returns Constructor |
contains( value: ) |
Returns Inherited from Checks if list contains the |
copyFrom( source: ) |
Returns Copies all elements from other list. |
create( make: { } ) |
Returns Instantiates a new object of the specified type, adds it to the end of the list, and returns it. |
each( f: ( value: ) |
Returns Inherited from Calls |
getIndex( index: ) |
Returns Inherited from Returns an item at specific |
indexOf( value: ) |
Returns Inherited from Returns the index of the specific -1 if not found. |
insert( value: ) |
Returns Inherited from Inserts a value into list. |
iterator() |
Returns Inherited from Returns a list iterator. |
remove( value: ) |
Returns Inherited from Removes an item with the |
setAll( newArray: ) |
Returns Inherited from Sets multiple items to the list. All current items are removed. |
slice( start: ) |
Returns Returns part of the list, starting at |
There are 10 inherited items currently hidden from this list. |
Events
#inserted |
Param { index: Inherited from Invoked when new value is inserted into the list. |
---|---|
#removed |
Param { index: Inherited from Invoked when a value is removed from the list. |
There are 2 inherited items currently hidden from this list. |
Adapters
OrderedListTemplate does not have any adapters.