Skip to content

Commit

Permalink
[Enh]: Contacts List View - Make Sort Configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
seandenigris committed Feb 15, 2024
1 parent 4d45b9a commit 7802c76
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/MyPeople/MpTEntityCollection.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ MpTEntityCollection >> contacts [
^ self privateFilteredContacts
]

{ #category : #searches }
MpTEntityCollection >> contactsGtViewListOn: aView [
<gtView>
^ self
contactsGtViewListOn: aView
sortedUsing: #nameForAlphabetization ascending
]

{ #category : #searches }
MpTEntityCollection >> contactsGtViewListOn: aView sortedUsing: aBlock [

^ aView list
title: 'Contacts List' translated;
priority: 8;
items: [ self asEntityCollection sorted: aBlock ];
actionUpdateButton
]

{ #category : #searches }
MpTEntityCollection >> contactsViewDetailedOn: aView [
<gtView>
Expand All @@ -40,16 +58,6 @@ MpTEntityCollection >> contactsViewDetailedOn: aView [
column: 'Phone' text: [ :aContact | aContact telephone ]
]

{ #category : #searches }
MpTEntityCollection >> contactsViewListOn: aView [
<gtView>
^ aView list
title: 'Contacts List' translated;
priority: 8;
items: [ self asEntityCollection sorted: #nameForAlphabetization ascending ];
actionUpdateButton
]

{ #category : #searches }
MpTEntityCollection >> contactsWithAddress: anAddress [

Expand Down

0 comments on commit 7802c76

Please sign in to comment.