Hi Nicolai,

On Thu, Sep 01, 2016 at 11:00:29AM +0200, Nicolai Hess wrote:
> 
> ...
> 
> Here is an example how you can create a spec based presentation (an
> IconListModel) ).
> Add this method to the other gtInspectorMethods for class Morph (instance
> side):
> 
> gtInspectorSubmorphs2In: composite
>     <gtInspectorPresentationOrder: 80> 
>     composite spec
>         title: 'Submorphs2';
>         display: [:each ||lm|
>             lm:= IconListModel new.
>             lm items: each submorphs.
>             lm icons:[:item | item taskThumbnailOfSize: (16@16) ].
>             lm displayBlock:[:item | item printString -> item class name].
>             lm buildWithSpec.
>             lm
>             ]

Perfect, thank you!

I've made a note to create an example, either as a comment or using GT
Examples, and submit it back for inclusion in the core image.

Thanks again,
Alistair


Reply via email to