-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #924 from guillep/table-sorting
fix(sorting): Make many tables in inspector extensions properly sortable
- Loading branch information
Showing
12 changed files
with
188 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Class { | ||
#name : 'StFileBrowserDateColumn', | ||
#superclass : 'StFileBrowserAbstractColumn', | ||
#category : 'NewTools-FileBrowser-Columns', | ||
#package : 'NewTools-FileBrowser', | ||
#tag : 'Columns' | ||
} | ||
|
||
{ #category : 'adding' } | ||
StFileBrowserDateColumn class >> addConstraintTo: aTableColumn [ | ||
|
||
aTableColumn | ||
width: 150; | ||
formatted: [ :v | self formatOn: v ]; | ||
beSortable | ||
] | ||
|
||
{ #category : 'templateMethod' } | ||
StFileBrowserDateColumn class >> formatOn: aValue [ | ||
|
||
aValue ifNil: [ ^ 'N/A' ]. | ||
^ '{1} {2} {3} {4}' format: { | ||
aValue dayOfMonth asString. | ||
aValue monthAbbreviation. | ||
aValue year asString. | ||
(aValue asTime print24 first: 5) } | ||
] | ||
|
||
{ #category : 'testing' } | ||
StFileBrowserDateColumn class >> isAbstract [ | ||
|
||
^ self == StFileBrowserDateColumn | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.