Thank you very much =) 2016-02-09 23:45 GMT+02:00 julien <jul...@tamere.eu>:
> Hi, try something like: > > tm := TreeModel new. > tm roots: yourCollection. > tm hasChildrenBlock: [ :item | item isDictionnary ]. > tm childrenBlock: [ :item | item keysAndValues ]. > > I wrote that from my phone but I think it is working. Else it shows you > the idea :) > > Julien > > Khrystyna Mykhailiuk <chrismihay...@gmail.com> a écrit : > > >Hi, all! > > > >I have OrderedCollection of Dictionaries and I want to display content of > >each Dictionary using TreeModel. > >I wrote these code, but it doesn't work correctly. And I get some errors. > > > >mt := TreeModel new. > >mt roots: (collectionFirst select: OrderedCollection new); > >childrenBlock: [ :item | item ]. > >mt openWithSpec. > > > >(This is screenshot of my work) > ><http://forum.world.st/file/n4876653/ScreenPharoTreeModel.png> > > > >I need to show each pair of Dictionary in new node. > > > >Can you help me, please? > > > > > > > >-- > >View this message in context: > http://forum.world.st/How-to-display-Dictionary-using-TreeModel-tp4876653.html > >Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > >