user1387717
user1387717

Reputation: 1049

indexeddb - get position of cursor

It is possible to advance an indexeddb cursor to a given position:

cursor.advance(100) 

But, is it position to get current position of the cursor? (i.e. return the 100)

Upvotes: 1

Views: 222

Answers (1)

Kyaw Tun
Kyaw Tun

Reputation: 13151

No.

You have to keep track of cursor offset yourself. Try to avoid it whenever possible, but instead use keys to locate cursor.

Upvotes: 1

Related Questions