Type class
Ordered list contains values of any type in an indexed array.
Sources
OrderedList can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.OrderedList * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
/** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.OrderedList * -------------------------------------------------------- */
Inheritance
OrderedList does not extend any other symbol.
OrderedList is extended by SortedList
, OrderedListTemplate
.
Properties
events # |
Type Default Event dispatcher. |
---|---|
first # |
Type First item in the list. |
last # |
Type Last item in the list. |
length # |
Type Number of items in the list. @readonly |
values # |
Type All items of the list. Do not modify the list directly. Rather use |
Methods
[Symbol.iterator]() |
Returns Returns an ES6 iterator for the list. |
---|---|
clear() |
Returns Removes all items from the list. |
constructor( initial?: ) |
Returns Constructor |
contains( value: ) |
Returns Checks if list contains the |
each( f: ( value: ) |
Returns Calls |
getIndex( index: ) |
Returns Returns an item at specific |
indexOf( value: ) |
Returns Returns the index of the specific -1 if not found. |
insert( value: ) |
Returns Inserts a value into list. |
iterator() |
Returns Returns a list iterator. |
remove( value: ) |
Returns Removes an item with the |
setAll( newArray: ) |
Returns Sets multiple items to the list. All current items are removed. |
slice( start: ) |
Returns Returns part of the list between |
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
OrderedList does not have any adapters.