Skip to content

Commit

Permalink
Support text's editable property
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Jul 1, 2024
1 parent d9f9094 commit 920985f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Spec-Toplo/SpToploTextAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,20 @@ SpToploTextAdapter >> buildWidget [

^ ToAlbum new
]

{ #category : #initialization }
SpToploTextAdapter >> subscribeToPresenter [

super subscribeToPresenter.

model whenEditableChangedDo: [
self updateEditable ]
]

{ #category : #initialization }
SpToploTextAdapter >> updateEditable [

model isEditable
ifTrue: [ widget beEditable ]
ifFalse: [ widget beReadonlyWithSelection ]
]

0 comments on commit 920985f

Please sign in to comment.