Skip to content

Commit

Permalink
[Enh]: GT Columned List View from Container
Browse files Browse the repository at this point in the history
Previously Container was auto-generated from a class and could not be modified.
  • Loading branch information
seandenigris committed Nov 26, 2023
1 parent d0eab4e commit debdd3b
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 debdd3b

Please sign in to comment.