Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper method to setup the filtering list header title #1639

Open
wants to merge 1 commit into
base: Pharo13
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Spec2-CommonWidgets/SpFilteringListPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ SpFilteringListPresenter >> filterText [
^ self filterInputPresenter text
]

{ #category : 'api' }
SpFilteringListPresenter >> headerTitle: aString [
"Set the receiver's header title to aString"

listPresenter headerTitle: aString
]

{ #category : 'initialization' }
SpFilteringListPresenter >> initializePresenters [

Expand Down
10 changes: 5 additions & 5 deletions src/Spec2-Examples/SpFilteringListPresenter.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ SpFilteringListPresenter class >> example [
<sampleInstance>
| example |
example := self new.
example items: RBBrowserEnvironment default classes asArray.
example open.
example withWindowDo: [ :window |
window title: self name asString , ' example' ].

example
items: RBBrowserEnvironment default classes asArray;
headerTitle: 'Classes';
open;
withWindowDo: [ :window | window title: self name asString , ' example' ].
^ example
]

Expand Down
Loading