I guess too much threads :) I answer this in another thread I think :P the block provided to displayBlock:/rowMorphGetSelector: can return anything understanding asMorph. So you can return any custom morph there :) I think the following work tree columns: (Array with: (TreeColumnModel new displayBlock: [:node | node content first asString ]; headerLabel: 'Name'; yourself) with: (TreeColumnModel new displayBlock: [:node | node content second asString ]; headerLabel: 'Last Name'; yourself) with: (TreeColumnModel new displayBlock: [:node | node content third asString ]; headerLabel: 'Age'; yourself) or tree columns: (Array with: (MorphTreeColumn new rowMorphGetSelector: [:node | node item first asString asMorph ]; headerButtonLabel: 'Name' font: nil; yourself) with: (MorphTreeColumn new rowMorphGetSelector: [:node | node item second asString asMorph ]; headerButtonLabel: 'Last Name' font: nil; yourself) with: (MorphTreeColumn new rowMorphGetSelector: [:node | node item third asString asMorph ]; headerButtonLabel: 'Age' font: nil; yourself) with: (MorphTreeColumn new rowMorphGetSelector: [:node | node item fourth asString asMorph ]; headerButtonLabel: 'Gender' font: nil; yourself) with: (MorphTreeColumn new rowMorphGetSelector: [:node | Morph new ]; headerButtonLabel: 'Morph' font: nil; yourself)). And you get something like ![]() Ben |
- [Pharo-users] Spec - Grid/Table Layout Bahman Movaqar
- Re: [Pharo-users] Spec - Grid/Table Layout Benjamin
- Re: [Pharo-users] Spec - Grid/Table Layout Stéphane Ducasse
- Re: [Pharo-users] Spec - Grid/Table Layout Benjamin
- Re: [Pharo-users] Spec - Grid/Table Layout Benjamin
- Re: [Pharo-users] Spec - Grid/Table Layout Clément Bera
- Re: [Pharo-users] Spec - Grid/Table Layout prova email
- Re: [Pharo-users] Spec - Grid/Table Layout Benjamin
- Re: [Pharo-users] Spec - Grid/Table Lay... prova email
- Re: [Pharo-users] Spec - Grid/Tabl... Benjamin
- Re: [Pharo-users] Spec - Grid/... prova email
- Re: [Pharo-users] Spec - G... Benjamin
- Re: [Pharo-users] Spec - G... prova email
- Re: [Pharo-users] Spec - G... Benjamin
- Re: [Pharo-users] Spec - G... prova email
- Re: [Pharo-users] Spec - G... Benjamin
- Re: [Pharo-users] Spec - G... prova email