Skip to content

Commit

Permalink
Merge pull request #341 from seandenigris/gt-col-list-from-container
Browse files Browse the repository at this point in the history
[Enh]: GT Columned List View from Container
  • Loading branch information
seandenigris authored Nov 26, 2023
2 parents d0eab4e + debdd3b commit 5518255
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions source/Magritte-GToolkit/GtPhlowProtoView.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
Extension { #name : #GtPhlowProtoView }

{ #category : #'*Magritte-GToolkit' }
GtPhlowProtoView >> maColumnedListFromContainer: anMAContainer descriptionsSelect: aBlock [

| result |
result := self columnedList.

anMAContainer children
select: aBlock
thenDo: [ :desc | desc gtAddColumnTo: result ].

^ result
]

{ #category : #'*Magritte-GToolkit' }
GtPhlowProtoView >> maColumnedListOf: aClass [

Expand All @@ -11,12 +24,7 @@ GtPhlowProtoView >> maColumnedListOf: aClass [
{ #category : #'*Magritte-GToolkit' }
GtPhlowProtoView >> maColumnedListOf: aClass descriptionsSelect: aBlock [

| result |
result := self columnedList.

aClass magritteTemplate magritteDescription children
select: aBlock
thenDo: [ :desc | desc gtAddColumnTo: result ].

^ result
^ self
maColumnedListFromContainer: aClass magritteTemplate magritteDescription
descriptionsSelect: aBlock
]

0 comments on commit 5518255

Please sign in to comment.