add(new_item: object | object[], index?: number): (string | number) | (string | number)[];
// adding a new item into the beginning of a data collection
component.data.add({"value": 57.44787660011765, "id": "u1565340894584"},0);
// adding an array of new items into a data collection
component.data.add([
{
"value": 57.44787660011765,
"id": "u1565340894584"
},
{
"value": 14.612810637958095,
"id": "u1565340894585"
},
{
"value": 83.9707181117741,
"id": "u1565340894586"
},
{
"value": 59.01285878162044,
"id": "u1565340894587"
}
]);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4