Opened 15 years ago

Closed 15 years ago

#1531 closed enhancement (fixed)

Feature request - dojo.collections.Store method addDataRangeByIndex

Reported by: [email protected] Owned by: Tom Trenka
Priority: high Milestone: 0.9
Component: Collections Version: 0.4
Keywords: Store Cc:
Blocked By: Blocking:


It would be useful in the dojo.collections.Store object to be able to add objects to any place in the store. This could be achieved quite simply using the Array.splice method.

Two methods would be required, addDataRangeByIndex for adding multiple objects at once, and addDataByIndex for adding a single object. The simple case I need is to prepend data to the store, but of course this could be used to insert data anywhere, rather than just at the end of the Store as is currently possible.

Change History (2)

comment:1 Changed 15 years ago by Tom Trenka

Owner: changed from Tom Trenka to Tom Trenka
Version: 0.50.4

Assigning correctly.

comment:2 Changed 15 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(In [6711]) Fixes #1531. Adds the following: getIndexOf, getDataByIndex, removeDataRange, addDataByIndex, and addDataRangeByIndex. The behavior of the latter two will modify existing objects if the passed key fields are found within the store.

Note: See TracTickets for help on using tickets.