-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turbolinks examples: multicounter and todo app
- Loading branch information
Showing
45 changed files
with
249 additions
and
23 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
repository/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/counter..st
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,4 @@ | ||
accessing | ||
counter: aValue | ||
|
||
counter := aValue |
1 change: 1 addition & 0 deletions
1
repository/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/counter.st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
accessing | ||
counter | ||
|
||
^ counter |
1 change: 1 addition & 0 deletions
1
repository/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/decrease.st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
decrease | ||
|
||
counter := counter - 1 |
1 change: 1 addition & 0 deletions
1
repository/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/increase.st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
actions | ||
increase | ||
|
||
counter := counter + 1 |
1 change: 1 addition & 0 deletions
1
repository/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/initialize.st
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
counter := 0 |
11 changes: 5 additions & 6 deletions
11
...y/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/renderContentOn..st
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
rendering | ||
renderContentOn: html | ||
|
||
html heading: counter. | ||
html anchor | ||
attributeAt: 'data-turbo-action' put: 'replace'; | ||
turbocallback: [ self increase ]; | ||
turboCallback: [ self increase ]; | ||
with: '++'. | ||
html space. | ||
html anchor | ||
attributeAt: 'data-turbo-action' put: 'replace'; | ||
turbocallback: [ self decrease ]; | ||
turboCallback: [ self decrease ]; | ||
with: '--'. | ||
html space. | ||
html anchor | ||
url: 'javascript:{}'; | ||
onClick: ((html jQuery id: #foo) load html:[ :h | h anchor callback: [ ] ]); | ||
with: 'bla' | ||
|
||
with: 'bla' |
5 changes: 0 additions & 5 deletions
5
...sitory/Seaside-HotwireTurbo-Examples.package/WATurboCounter.class/instance/updateRoot..st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
repository/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/class/register.st
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
testing | ||
register | ||
| app | | ||
app := (WAAdmin register: self asApplicationAt: 'turbocounter'). | ||
app := (WAAdmin register: self asApplicationAt: '/examples/turbo/multicounter'). | ||
app addLibrary: JQDevelopmentLibrary. | ||
"app addLibrary: TurboFileLibrary " |
3 changes: 2 additions & 1 deletion
3
...tory/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/children.st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
hooks | ||
children | ||
^ counters | ||
|
||
^ counters, { totals } |
7 changes: 6 additions & 1 deletion
7
...ry/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/initialize.st
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
counters := (1 to: 5) collect: [ :each | WATurboCounter new addDecoration: WATurboFrame new; yourself ] | ||
counters := (1 to: 5) collect: [ :each | WATurboCounter new addDecoration: WATurboFrame new; yourself ]. | ||
totals := (WAPluggablePresenter new block: [ :html | | ||
html heading | ||
level: 1; | ||
with: (counters inject: 0 into:[ :total :c | c counter + total ]) ]) addDecoration: (WATurboFrame newWithId: 'id-total'); yourself |
17 changes: 9 additions & 8 deletions
17
...side-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/renderContentOn..st
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
initialization | ||
renderContentOn: html | ||
|
||
| theValue | | ||
self renderTurboScriptOn: html. | ||
html div id: #foo. | ||
counters | ||
do: [ :each | html render: each ] | ||
separatedBy: [ html horizontalRule ]. | ||
html horizontalRule; horizontalRule. | ||
"(html tag:'turbo-frame') | ||
id: 'id-sum'; | ||
with:[" | ||
html heading | ||
level: 1; | ||
with: (counters inject: 0 into:[ :total :c | c counter + total ]). | ||
html form: [ | ||
html submitButton ]" ]" | ||
html render: totals. | ||
html form: [ | ||
html textInput | ||
callback: [ :value | theValue := value ]. | ||
html submitButton | ||
turboFrameTarget: 'id-total'; | ||
turboCallback: [ self setCountersTo: theValue ] ] |
1 change: 1 addition & 0 deletions
1
...-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/renderTurboScriptOn..st
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
6 changes: 6 additions & 0 deletions
6
...easide-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/setCountersTo..st
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,6 @@ | ||
actions | ||
setCountersTo: aValue | ||
|
||
| theValue | | ||
theValue := Integer readFrom: aValue ifFail: [ 0 ]. | ||
counters do: [ :each | each counter: theValue ] |
1 change: 1 addition & 0 deletions
1
...sitory/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/states.st
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
hooks | ||
states | ||
|
||
^ #() |
1 change: 1 addition & 0 deletions
1
...y/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/instance/updateRoot..st
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
updating | ||
updateRoot: aRoot | ||
|
||
super updateRoot: aRoot. | ||
"aRoot javascript url: WATurboFileLibrary/ #turboes2017umdJs" |
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
Empty file.
3 changes: 3 additions & 0 deletions
3
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/class/canBeRoot.st
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,3 @@ | ||
initialization | ||
canBeRoot | ||
^ true |
5 changes: 5 additions & 0 deletions
5
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/class/register.st
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,5 @@ | ||
initialization | ||
register | ||
(WAAdmin register: self asApplicationAt: '/examples/turbo/todo') | ||
exceptionHandler: WADebugErrorHandler; | ||
addLibrary: WAExamplesLibrary |
8 changes: 8 additions & 0 deletions
8
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/addTodo..st
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,8 @@ | ||
actions | ||
addTodo: aString | ||
|
||
| newTodo | | ||
newTodo := WATurboTodoItem newWithDescription: aString in: todos. | ||
newTodo addDecoration: WATurboFrame new. | ||
todos add: newTodo. | ||
^ newTodo |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/children.st
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,4 @@ | ||
accessing | ||
children | ||
|
||
^ self todos |
7 changes: 7 additions & 0 deletions
7
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/initialize.st
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,7 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
todos := OrderedCollection new. | ||
1 to: 10 do: [ :index | | ||
self addTodo: ('Task {1}' format: { index greaseString }) ] |
17 changes: 17 additions & 0 deletions
17
...y/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/renderAddNewTodoOn..st
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,17 @@ | ||
rendering | ||
renderAddNewTodoOn: html | ||
|
||
| newTodo | | ||
html form | ||
id: 'new-todo-form'; | ||
turboStreamCallback: [ :ts | | ||
ts | ||
append: 'todo-list' with: newTodo; | ||
replace: 'new-todo-form' with: [ :r | self renderAddNewTodoOn: r ] ]; | ||
with: [ | ||
html textInput | ||
id: 'new-todo'; | ||
autofocus; | ||
noAutocomplete; | ||
callback: [ :value | newTodo := self addTodo: value ]; | ||
placeholder: 'What needs to be done?' ] |
9 changes: 9 additions & 0 deletions
9
...tory/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/renderContentOn..st
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,9 @@ | ||
rendering | ||
renderContentOn: html | ||
|
||
self renderTurboScriptOn: html. | ||
html section | ||
id: #todoapp; | ||
with: [ | ||
self renderHeaderWithAddTodoOn: html. | ||
self renderTodosOn: html ] |
10 changes: 10 additions & 0 deletions
10
...de-HotwireTurbo-Examples.package/WATurboTodo.class/instance/renderHeaderWithAddTodoOn..st
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,10 @@ | ||
rendering | ||
renderHeaderWithAddTodoOn: html | ||
|
||
html header | ||
id: #header; | ||
with: [ | ||
html heading | ||
level: 1; | ||
with: 'todos'. | ||
self renderAddNewTodoOn: html ] |
14 changes: 14 additions & 0 deletions
14
...sitory/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/renderTodosOn..st
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,14 @@ | ||
rendering | ||
renderTodosOn: html | ||
|
||
html section | ||
id: 'main'; | ||
with: [ | ||
html checkbox | ||
id: 'toggle-all'. | ||
html label | ||
for: 'toggle-all'; | ||
with: 'Mark all as complete'. | ||
html unorderedList | ||
id: 'todo-list'; | ||
with: [ self todos do: [ :todoItem | todoItem renderOn: html ] ] ] |
8 changes: 8 additions & 0 deletions
8
.../Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/renderTurboScriptOn..st
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,8 @@ | ||
rendering | ||
renderTurboScriptOn: html | ||
|
||
html script | ||
type: 'module'; | ||
"attributeAt: 'data-turbo-eval' put: false;" | ||
"with:'import hotwiredTurbo from ''https://cdn.skypack.dev/@hotwired/turbo'';'" | ||
with: 'import * as Turbo from ''',(WATurboFileLibrary / #turboes2017esmJs) greaseString,''';' |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/todos.st
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,4 @@ | ||
accessing | ||
todos | ||
|
||
^ todos |
6 changes: 6 additions & 0 deletions
6
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/instance/updateRoot..st
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,6 @@ | ||
rendering | ||
updateRoot: aRoot | ||
|
||
super updateRoot: aRoot. | ||
aRoot stylesheet url: WAExamplesLibrary / #todoCss. | ||
aRoot javascript url: JQDeploymentLibrary / #jQueryJs |
13 changes: 13 additions & 0 deletions
13
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/properties.json
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,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "WAExampleComponent", | ||
"category" : "Seaside-HotwireTurbo-Examples", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"todos" | ||
], | ||
"name" : "WATurboTodo", | ||
"type" : "normal" | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
...aside-HotwireTurbo-Examples.package/WATurboTodoItem.class/class/newWithDescription.in..st
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,3 @@ | ||
instance creation | ||
newWithDescription: aString in: aCollection | ||
^ self new initializeWithDescription: aString in: aCollection |
3 changes: 3 additions & 0 deletions
3
...tory/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/description..st
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,3 @@ | ||
accessing | ||
description: anObject | ||
description := anObject |
3 changes: 3 additions & 0 deletions
3
...itory/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/description.st
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,3 @@ | ||
accessing | ||
description | ||
^ description |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/done..st
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,3 @@ | ||
accessing | ||
done: anObject | ||
done := anObject |
3 changes: 3 additions & 0 deletions
3
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/done.st
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,3 @@ | ||
accessing | ||
done | ||
^ done |
7 changes: 7 additions & 0 deletions
7
...ireTurbo-Examples.package/WATurboTodoItem.class/instance/initializeWithDescription.in..st
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,7 @@ | ||
initialization | ||
initializeWithDescription: aString in: aCollection | ||
self initialize. | ||
self done: false. | ||
self description: aString. | ||
editmode := false. | ||
todos := aCollection |
4 changes: 4 additions & 0 deletions
4
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/remove.st
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,4 @@ | ||
private | ||
remove | ||
todos remove: self. | ||
^ self turboframeDecoration id |
24 changes: 24 additions & 0 deletions
24
.../Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/instance/renderContentOn..st
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,24 @@ | ||
rendering | ||
renderContentOn: html | ||
|
||
| id | | ||
html listItem | ||
onDoubleClick: (html javascript turboCallback: [ self turboCall: (WATurboTodoItemEditor on: self) ] frameId: self turboframeDecoration id); | ||
id: (id := html nextId); | ||
with: [ | ||
html div | ||
class: 'view'; | ||
with:[ | ||
html form | ||
turboStreamCallback:[ :ts | ts update: id with: self ]; | ||
with:[ | ||
html checkbox | ||
class: 'toggle'; | ||
callback: [ :value | self done: value ]; | ||
onChange: (html javascript: 'this.form.requestSubmit()'); | ||
value: done ]. | ||
html label: description. | ||
html form: [ | ||
html button | ||
class: 'destroy'; | ||
turboStreamCallback: [ :ts | ts remove: self remove ] ] ] ] |
16 changes: 16 additions & 0 deletions
16
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodoItem.class/properties.json
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,16 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "WAComponent", | ||
"category" : "Seaside-HotwireTurbo-Examples", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"todos", | ||
"description", | ||
"done", | ||
"editmode" | ||
], | ||
"name" : "WATurboTodoItem", | ||
"type" : "normal" | ||
} |
Empty file.
4 changes: 4 additions & 0 deletions
4
repository/Seaside-HotwireTurbo-Examples.package/WATurboTodoItemEditor.class/class/on..st
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,4 @@ | ||
instance creation | ||
on: aWATodoItem | ||
|
||
^ self basicNew initializeOn: aWATodoItem |
5 changes: 5 additions & 0 deletions
5
...aside-HotwireTurbo-Examples.package/WATurboTodoItemEditor.class/instance/initializeOn..st
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,5 @@ | ||
initialization | ||
initializeOn: aWATodoItem | ||
|
||
self initialize. | ||
todoItem := aWATodoItem |
Oops, something went wrong.