-
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.
Added comments to some turbo attributes
- Loading branch information
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
repository/Seaside-HotwireTurbo.package/WAAnchorTag.extension/instance/turbo..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 @@ | ||
*Seaside-HotwireTurbo | ||
turbo: aBoolean | ||
|
||
"data-turbo=""false"" disables Turbo Drive on links and forms including descendants. To reenable when an ancestor has opted out, use data-turbo=""true"". Be careful: when Turbo Drive is disabled, browsers treat link clicks as normal, but native adapters may exit the app." | ||
|
||
self dataAttributeAt: 'turbo' put: aBoolean |
3 changes: 2 additions & 1 deletion
3
repository/Seaside-HotwireTurbo.package/WAAnchorTag.extension/instance/turboAction..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,5 +1,6 @@ | ||
*Seaside-HotwireTurbo | ||
turboAction: aString | ||
|
||
(#('replace' 'advance') includes: aString) ifFalse: [ | ||
self error. ]. | ||
self error: 'Argument for turboAction must be either ''replace'' or ''advance''.' ]. | ||
self dataAttributeAt: 'turbo-action' put: aString |
2 changes: 2 additions & 0 deletions
2
repository/Seaside-HotwireTurbo.package/WAAnchorTag.extension/instance/turboTarget..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,6 @@ | ||
*Seaside-HotwireTurbo | ||
turboTarget: aString | ||
|
||
"data-turbo-frame identifies the Turbo Frame to navigate. Refer to the Frames documentation for further details." | ||
|
||
self dataAttributeAt: 'turbo-frame' put: aString |
3 changes: 2 additions & 1 deletion
3
repository/Seaside-HotwireTurbo.package/WAAnchorTag.extension/instance/turbocallback..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,5 +1,6 @@ | ||
*Seaside-HotwireTurbo | ||
turboCallback: aNiladicValuable | ||
turboCallback: aNiladicValuable | ||
|
||
aNiladicValuable argumentCount > 0 ifTrue: [ | ||
GRInvalidArgumentCount signal: 'Anchors expect a niladic callback.' ]. | ||
self url addField: (self storeCallback: (WATurboFrameActionCallback on: aNiladicValuable)) |