[Dojo-interest] Example of a dojo object store that support the before option when using the add method

Shane Green shane.green at me.com
Tue Jun 10 14:46:18 EDT 2014


You could go with a variation of flattened hierarchy that created a linked list tracked using pid and or nid fields to track neighbors, or create a separate lookup table..? 


On Jan 14, 2014, at 1:42 AM, Sebastien Brunot <sebastien.brunot at fr.ibm.com> wrote:

> Thanks, 
> 
> I thought about this kind of solution (using an ordering field on the object). Do you confirm that there is no way to do it without introducing a new (or using a pre existing) field in the stored data ? 
> 
> Sebastien Brunot
> IBM DOJO Mobile Team 
> 
> 
> 
> From:        "Kris Zyp" <kris at sitepen.com> 
> To:        <dojo-interest at mail.dojotoolkit.org>, 
> Date:        14/01/2014 04:37 
> Subject:        Re: [Dojo-interest] Example of a dojo object store that support the        before option when using the add method 
> Sent by:        dojo-interest-bounces at mail.dojotoolkit.org 
> 
> 
> 
> From: Sebastien Brunot 
> Sent: Thursday, January 9, 2014 10:04 AM 
> To: dojo-interest at mail.dojotoolkit.org 
> Subject: [Dojo-interest] Example of a dojo object store that support the before option when using the add method 
>   
>   
> > Does anyone has an example of a dojo object store implementation that support both using before in the 
> > add / put options and that correctly report insertion position when wrapped in an Observable ? 
>   
> Yes, this should be a working example of store with ordering support, that is Observable: 
> https://github.com/SitePen/dgrid/blob/master/test/data/base.js#L292 
>   
> That store is used in the dgrid DnD test: 
> https://github.com/SitePen/dgrid/blob/master/test/extensions/DnD.html#L84 
>   
> Thanks, 
> Kris________________________________________________________
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> 
> Dojo-interest at mail.dojotoolkit.org
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> 
> 
> 
> Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
> Compagnie IBM France
> Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex
> RCS Nanterre 552 118 465
> Forme Sociale : S.A.S.
> Capital Social : 653.242.306,20 €
> SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A ________________________________________________________
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> 
> Dojo-interest at mail.dojotoolkit.org
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20140610/0a84d024/attachment.htm 


More information about the Dojo-interest mailing list