-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for fused asynchronic and synchronic link views.
- Loading branch information
Showing
9 changed files
with
55 additions
and
26 deletions.
There are no files selected for viewing
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
9 changes: 9 additions & 0 deletions
9
...kage/BootstrapComponentSupplierTest.class/instance/testSynchronicButtonLabeledApplying.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 @@ | ||
tests-Supplying | ||
testSynchronicButtonLabeledApplying | ||
|
||
self | ||
assertRenderingOf: [ :supplier | | ||
supplier | ||
synchronicButtonLabeled: 'Buy' | ||
applying: [ :link | link addClass bootstrap buttonPrimary ] ] | ||
equals: '<button class="btn btn-primary" type="submit">Buy</button>' |
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
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
18 changes: 9 additions & 9 deletions
18
source/Willow-Bootstrap-Tests.package/monticello.meta/categories.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,10 +1,10 @@ | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Applications'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Datepicker'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Frontend'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Libraries'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Plugins'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Select'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Typeahead'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-WebInteraction'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-WebViews'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Applications'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Datepicker'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Frontend'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Libraries'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Plugins'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Select'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-Typeahead'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-WebInteraction'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests-WebViews'! |
7 changes: 6 additions & 1 deletion
7
...rap.package/BootstrapComponentSupplier.class/instance/asynchronicLinkLabeled.applying..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 @@ | ||
Supplying | ||
asynchronicLinkLabeled: aRenderable applying: aComponentCommand | ||
|
||
^ AsynchronicLinkWebView labeled: aRenderable applying: aComponentCommand | ||
| linkView | | ||
|
||
linkView := LinkWebView labeled: aRenderable applying: aComponentCommand. | ||
linkView onTrigger | ||
executeOnClient: [ :script :canvas | script << canvas jQuery event preventDefault ]. | ||
^ linkView |
6 changes: 6 additions & 0 deletions
6
...ap.package/BootstrapComponentSupplier.class/instance/synchronicButtonLabeled.applying..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 @@ | ||
Supplying | ||
synchronicButtonLabeled: aRenderable applying: aComponentCommand | ||
|
||
^ SynchronicSubmitButtonWebView | ||
labeled: aRenderable | ||
applying: [ :field | field addClass bootstrap button + aComponentCommand ] |
4 changes: 0 additions & 4 deletions
4
...BootstrapComponentSupplier.class/instance/synchronicButtonLabeled.applying.evaluating..st
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
source/Willow-Bootstrap.package/monticello.meta/categories.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,8 +1,8 @@ | ||
SystemOrganization addCategory: #'Willow-Bootstrap'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Datepicker'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Frontend'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Libraries'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Plugins'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Select'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Typeahead'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-WebViews'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Datepicker'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Frontend'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Libraries'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Plugins'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Select'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Typeahead'! | ||
SystemOrganization addCategory: #'Willow-Bootstrap-WebViews'! |