M
M
Millerish2017-08-28 15:42:42
JavaScript
Millerish, 2017-08-28 15:42:42

Dexie: How to add to the beginning of the table?

Good time of the day!
I need to add an element to the beginning of the table, I can't find methods for that.
I add to the horses like this:

var newTab = tabs.add({}, tabs.getIndex(tabs.getSelected()) + 1)

How to do the same but in the beginning?
tried:
tabs.add({}, 0)
tabs.add({})
tabs.put({})

Help solve the issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2017-08-28
@tsklab

I need to add an element to the beginning of the table
The table has no beginning or end. It's on the list. Therefore, you need to add a column to the table by which the rows will be sorted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question