Skip to content

Commit

Permalink
add example easy resizable columns
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Nov 27, 2024
1 parent 9f3e143 commit 404bb4e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Spec2-ListView/SpEasyColumnViewPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,25 @@ SpEasyColumnViewPresenter class >> exampleActivateOnDoubleClick [
open
]

{ #category : 'examples' }
SpEasyColumnViewPresenter class >> exampleResizableColumns [
"This example show the simples list view you can make: A list with a label"

self new
application: SpApplication new;
items: self environment allClasses;
beResizable;
addColumn: (SpStringTableColumn new
title: 'Class';
evaluated: [ :each | each name ];
yourself);
addColumn: (SpStringTableColumn new
title: 'Lines of code';
evaluated: [ :each | each linesOfCode ];
yourself);
open
]

{ #category : 'examples' }
SpEasyColumnViewPresenter class >> exampleWithColumnWidth [
"This example show the simples list view you can make: A list with a label"
Expand Down

0 comments on commit 404bb4e

Please sign in to comment.