-
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.
- Loading branch information
Showing
53 changed files
with
458 additions
and
2 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
.../Willow-Bootstrap-Tests.package/BootstrapModalFooterWebViewTest.class/README.md
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 @@ | ||
A BootstrapModalFooterTest is a test class for testing the behavior of BootstrapModalFooterWebView |
10 changes: 10 additions & 0 deletions
10
...ow-Bootstrap-Tests.package/BootstrapModalFooterWebViewTest.class/instance/acceptButton.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 @@ | ||
private | ||
acceptButton | ||
|
||
^ AsynchronicButtonWebView | ||
labeled: 'Accept' | ||
applying: | ||
(ComponentClassificationCommand | ||
toStyleWithAll: | ||
{BootstrapCssStyles button. | ||
BootstrapCssStyles buttonPrimary}) |
18 changes: 18 additions & 0 deletions
18
...w-Bootstrap-Tests.package/BootstrapModalFooterWebViewTest.class/instance/testOnTrigger.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,18 @@ | ||
tests | ||
testOnTrigger | ||
|
||
| footer html | | ||
|
||
footer := BootstrapModalFooterWebView | ||
with: self acceptButton | ||
andCloseButtonLabeled: 'Close' | ||
applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
|
||
footer onTrigger disable. | ||
|
||
html := self render: footer. | ||
|
||
self | ||
assert: html | ||
equals: | ||
'<div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Close</button><button id="button-id1" class="btn btn-primary" type="button">Accept</button></div><script type="text/javascript">$("#button-id1").click(function(){$(this).prop("disabled",true)});</script>' |
12 changes: 12 additions & 0 deletions
12
...strap-Tests.package/BootstrapModalFooterWebViewTest.class/instance/testRenderContentOn.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,12 @@ | ||
tests | ||
testRenderContentOn | ||
|
||
| footer html | | ||
|
||
footer := BootstrapModalFooterWebView | ||
withCloseButtonLabeled: 'Close' | ||
applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
|
||
html := self render: footer. | ||
|
||
self assert: html equals: '<div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Close</button></div>' |
16 changes: 16 additions & 0 deletions
16
...ootstrapModalFooterWebViewTest.class/instance/testRenderContentOnWithAdditionalButtons.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,16 @@ | ||
tests | ||
testRenderContentOnWithAdditionalButtons | ||
|
||
| footer html | | ||
|
||
footer := BootstrapModalFooterWebView | ||
with: self acceptButton | ||
andCloseButtonLabeled: 'Close' | ||
applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
|
||
html := self render: footer. | ||
|
||
self | ||
assert: html | ||
equals: | ||
'<div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Close</button><button class="btn btn-primary" type="button">Accept</button></div>' |
9 changes: 9 additions & 0 deletions
9
...illow-Bootstrap-Tests.package/BootstrapModalFooterWebViewTest.class/methodProperties.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,9 @@ | ||
{ | ||
"instance" : { | ||
"testRenderContentOnWithAdditionalButtons" : "GabrielOmarCotelli 4/10/2017 10:22", | ||
"testOnTrigger" : "GabrielOmarCotelli 4/10/2017 10:22", | ||
"acceptButton" : "GabrielOmarCotelli 4/10/2017 09:55", | ||
"testRenderContentOn" : "GabrielOmarCotelli 4/10/2017 10:22" | ||
}, | ||
"class" : { } | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Willow-Bootstrap-Tests.package/BootstrapModalFooterWebViewTest.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,11 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 4/10/2017 10:23", | ||
"super" : "WillowTestCase", | ||
"category" : "Willow-Bootstrap-Tests-WebViews", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "BootstrapModalFooterWebViewTest", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
.../Willow-Bootstrap-Tests.package/BootstrapModalHeaderWebViewTest.class/README.md
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 @@ | ||
A BootstrapModalHeaderTest is a test class for testing the behavior of BootstrapModalHeaderWebView |
9 changes: 9 additions & 0 deletions
9
...strap-Tests.package/BootstrapModalHeaderWebViewTest.class/instance/testRenderContentOn.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 | ||
testRenderContentOn | ||
|
||
| header html | | ||
|
||
header := BootstrapModalHeaderWebView titled: 'Welcome!'. | ||
html := self render: header. | ||
|
||
self assert: html equals: '<div class="modal-header"><h4 class="modal-title">Welcome!</h4></div>' |
15 changes: 15 additions & 0 deletions
15
...age/BootstrapModalHeaderWebViewTest.class/instance/testRenderContentOnWithComplexTitle.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,15 @@ | ||
tests | ||
testRenderContentOnWithComplexTitle | ||
|
||
| header html | | ||
|
||
header := BootstrapModalHeaderWebView | ||
titled: [ :canvas | | ||
canvas | ||
render: (BootstrapIconWebView representing: Glyphicons menuUp); | ||
render: 'Up!' ]. | ||
html := self render: header. | ||
|
||
self | ||
assert: html | ||
equals: '<div class="modal-header"><h4 class="modal-title"><span class="glyphicon glyphicon-menu-up"></span>Up!</h4></div>' |
12 changes: 12 additions & 0 deletions
12
...ge/BootstrapModalHeaderWebViewTest.class/instance/testRenderContentOnWithDismissButton.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,12 @@ | ||
tests | ||
testRenderContentOnWithDismissButton | ||
|
||
| header html | | ||
|
||
header := BootstrapModalHeaderWebView dismissableTitled: 'Welcome!'. | ||
html := self render: header. | ||
|
||
self | ||
assert: html | ||
equals: | ||
'<div class="modal-header"><button class="close" data-dismiss="modal" aria-label="Close" type="button"><span aria-hidden="true">×</span></button><h4 class="modal-title">Welcome!</h4></div>' |
8 changes: 8 additions & 0 deletions
8
...illow-Bootstrap-Tests.package/BootstrapModalHeaderWebViewTest.class/methodProperties.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,8 @@ | ||
{ | ||
"instance" : { | ||
"testRenderContentOnWithDismissButton" : "GabrielOmarCotelli 4/10/2017 10:22", | ||
"testRenderContentOnWithComplexTitle" : "GabrielOmarCotelli 4/10/2017 10:22", | ||
"testRenderContentOn" : "GabrielOmarCotelli 4/10/2017 10:22" | ||
}, | ||
"class" : { } | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Willow-Bootstrap-Tests.package/BootstrapModalHeaderWebViewTest.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,11 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 4/10/2017 10:23", | ||
"super" : "WillowTestCase", | ||
"category" : "Willow-Bootstrap-Tests-WebViews", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "BootstrapModalHeaderWebViewTest", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
source/Willow-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/README.md
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 @@ | ||
A BootstrapModalWebViewTest is a test class for testing the behavior of BootstrapModalWebView |
10 changes: 10 additions & 0 deletions
10
...ce/Willow-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/instance/agreeButton.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 @@ | ||
private | ||
agreeButton | ||
|
||
^ AsynchronicButtonWebView | ||
labeled: 'Agree' | ||
applying: | ||
(ComponentClassificationCommand | ||
toStyleWithAll: | ||
{BootstrapCssStyles button. | ||
BootstrapCssStyles buttonDefault}) |
10 changes: 10 additions & 0 deletions
10
...llow-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/instance/takeMySoulButton.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 @@ | ||
private | ||
takeMySoulButton | ||
|
||
^ AsynchronicButtonWebView | ||
labeled: 'Just take my soul' | ||
applying: | ||
(ComponentClassificationCommand | ||
toStyleWithAll: | ||
{BootstrapCssStyles button. | ||
BootstrapCssStyles buttonPrimary}) |
15 changes: 15 additions & 0 deletions
15
.../Willow-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/instance/testOnTrigger.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,15 @@ | ||
tests | ||
testOnTrigger | ||
|
||
| html footer header dialog | | ||
|
||
footer := BootstrapModalFooterWebView withCloseButtonLabeled: 'Ok' applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
header := BootstrapModalHeaderWebView titled: 'Terms and Conditions'. | ||
dialog := BootstrapModalWebView withHeader: header containing: 'Some very large legal stuff. ;)' footer: footer. | ||
|
||
dialog onTrigger disable. | ||
|
||
html := self render: dialog. | ||
|
||
"The only button is the close one, so no need to generate javascript." | ||
self assert: html equals: '<div class="modal" tabindex="-1" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h4 class="modal-title">Terms and Conditions</h4></div><div class="modal-body">Some very large legal stuff. ;)</div><div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Ok</button></div></div></div></div>' |
24 changes: 24 additions & 0 deletions
24
...tstrap-Tests.package/BootstrapModalWebViewTest.class/instance/testOnTriggerWithButtons.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 @@ | ||
tests | ||
testOnTriggerWithButtons | ||
|
||
| html footer header dialog | | ||
|
||
footer := BootstrapModalFooterWebView | ||
containing: | ||
{self agreeButton. | ||
self takeMySoulButton} | ||
andCloseButton: | ||
(BootstrapModalFooterWebView | ||
closeButtonLabeled: 'Disagree' | ||
applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink)). | ||
header := BootstrapModalHeaderWebView titled: 'Terms and Conditions'. | ||
dialog := BootstrapModalWebView withHeader: header containing: 'Some very large legal stuff. ;)' footer: footer. | ||
|
||
dialog onTrigger disable. | ||
|
||
html := self render: dialog. | ||
|
||
self | ||
assert: html | ||
equals: | ||
'<div class="modal" tabindex="-1" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h4 class="modal-title">Terms and Conditions</h4></div><div class="modal-body">Some very large legal stuff. ;)</div><div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Disagree</button><button id="button-id1" class="btn btn-default" type="button">Agree</button><button id="button-id2" class="btn btn-primary" type="button">Just take my soul</button></div></div></div></div><script type="text/javascript">$("#button-id1").click(function(){$(this).prop("disabled",true)});$("#button-id2").click(function(){$(this).prop("disabled",true)});</script>' |
13 changes: 13 additions & 0 deletions
13
...w-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/instance/testRenderContentOn.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,13 @@ | ||
tests | ||
testRenderContentOn | ||
|
||
| html footer header dialog | | ||
|
||
footer := BootstrapModalFooterWebView withCloseButtonLabeled: 'Ok' applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
header := BootstrapModalHeaderWebView titled: 'Terms and Conditions'. | ||
|
||
dialog := BootstrapModalWebView withHeader: header containing: 'Some very large legal stuff. ;)' footer: footer. | ||
|
||
html := self render: dialog. | ||
|
||
self assert: html equals: '<div class="modal" tabindex="-1" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h4 class="modal-title">Terms and Conditions</h4></div><div class="modal-body">Some very large legal stuff. ;)</div><div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Ok</button></div></div></div></div>' |
20 changes: 20 additions & 0 deletions
20
...Tests.package/BootstrapModalWebViewTest.class/instance/testRenderContentOnWithCommands.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,20 @@ | ||
tests | ||
testRenderContentOnWithCommands | ||
|
||
| html footer header dialog | | ||
|
||
footer := BootstrapModalFooterWebView withCloseButtonLabeled: 'Ok' applying: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles buttonLink). | ||
header := BootstrapModalHeaderWebView titled: 'Terms and Conditions'. | ||
|
||
dialog := BootstrapModalWebView | ||
withHeader: header | ||
containing: 'Some very large legal stuff. ;)' | ||
footer: footer | ||
applyingToDialog: (ComponentClassificationCommand toStyleWith: 'fade') | ||
andToDocument: (ComponentClassificationCommand toStyleWith: BootstrapCssStyles modalLarge). | ||
|
||
html := self render: dialog. | ||
|
||
self | ||
assert: html | ||
equals: '<div class="modal fade" tabindex="-1" role="dialog"><div class="modal-dialog modal-lg" role="document"><div class="modal-content"><div class="modal-header"><h4 class="modal-title">Terms and Conditions</h4></div><div class="modal-body">Some very large legal stuff. ;)</div><div class="modal-footer"><button class="btn btn-link" data-dismiss="modal" type="button">Ok</button></div></div></div></div>' |
11 changes: 11 additions & 0 deletions
11
source/Willow-Bootstrap-Tests.package/BootstrapModalWebViewTest.class/methodProperties.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,11 @@ | ||
{ | ||
"instance" : { | ||
"takeMySoulButton" : "GabrielOmarCotelli 4/10/2017 11:07", | ||
"testOnTrigger" : "GabrielOmarCotelli 4/10/2017 11:03", | ||
"testRenderContentOn" : "GabrielOmarCotelli 4/10/2017 10:46", | ||
"testRenderContentOnWithCommands" : "GabrielOmarCotelli 4/10/2017 10:50", | ||
"testOnTriggerWithButtons" : "GabrielOmarCotelli 4/10/2017 11:07", | ||
"agreeButton" : "GabrielOmarCotelli 4/10/2017 11:07" | ||
}, | ||
"class" : { } | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Willow-Bootstrap-Tests.package/BootstrapModalWebViewTest.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,11 @@ | ||
{ | ||
"commentStamp" : "<historical>", | ||
"super" : "WillowTestCase", | ||
"category" : "Willow-Bootstrap-Tests-WebViews", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "BootstrapModalWebViewTest", | ||
"type" : "normal" | ||
} |
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
1 change: 1 addition & 0 deletions
1
source/Willow-Bootstrap.package/BootstrapModalFooterWebView.class/README.md
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 @@ | ||
I represent the footer in a Bootstrap modal. |
8 changes: 8 additions & 0 deletions
8
...Bootstrap.package/BootstrapModalFooterWebView.class/class/closeButtonLabeled.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,8 @@ | ||
Building | ||
closeButtonLabeled: aRenderable applying: aComponentCommand | ||
|
||
^ AsynchronicButtonWebView | ||
labeled: aRenderable | ||
applying: | ||
(ComponentClassificationCommand toStyleWith: BootstrapCssStyles button) | ||
+ (ComponentMetadataCommand toDeclare: BootstrapConstants dismiss with: BootstrapConstants modal) + aComponentCommand |
4 changes: 4 additions & 0 deletions
4
...w-Bootstrap.package/BootstrapModalFooterWebView.class/class/containing.andCloseButton..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 | ||
containing: aButtonCollection andCloseButton: aCloseButton | ||
|
||
^ self new initializeContaining: aButtonCollection andCloseButton: aCloseButton |
4 changes: 4 additions & 0 deletions
4
...p.package/BootstrapModalFooterWebView.class/class/with.andCloseButtonLabeled.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,4 @@ | ||
Instance Creation | ||
with: aButtonWebView andCloseButtonLabeled: aRenderable applying: aCloseButtonCommand | ||
|
||
^ self containing: {aButtonWebView} andCloseButton: (self closeButtonLabeled: aRenderable applying: aCloseButtonCommand) |
4 changes: 4 additions & 0 deletions
4
...strap.package/BootstrapModalFooterWebView.class/class/withCloseButtonLabeled.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,4 @@ | ||
Instance Creation | ||
withCloseButtonLabeled: aRenderable applying: aComponentCommand | ||
|
||
^ self containing: #() andCloseButton: (self closeButtonLabeled: aRenderable applying: aComponentCommand) |
5 changes: 5 additions & 0 deletions
5
...ackage/BootstrapModalFooterWebView.class/instance/initializeContaining.andCloseButton..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 @@ | ||
initialize | ||
initializeContaining: aButtonCollection andCloseButton: aCloseButton | ||
|
||
buttons := aButtonCollection. | ||
closeButton := aCloseButton |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapModalFooterWebView.class/instance/onTrigger.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 @@ | ||
Configuring | ||
onTrigger | ||
|
||
^ CombinedWebInteractionInterpreter combiningInterpretersOf: buttons |
7 changes: 7 additions & 0 deletions
7
...e/Willow-Bootstrap.package/BootstrapModalFooterWebView.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,7 @@ | ||
rendering | ||
renderContentOn: aCanvas | ||
|
||
aCanvas div | ||
class: BootstrapCssStyles modalFooter; | ||
with: [ aCanvas render: closeButton. | ||
buttons do: [ :button | aCanvas render: button ] ] |
13 changes: 13 additions & 0 deletions
13
source/Willow-Bootstrap.package/BootstrapModalFooterWebView.class/methodProperties.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 @@ | ||
{ | ||
"instance" : { | ||
"renderContentOn:" : "GabrielOmarCotelli 4/10/2017 09:44", | ||
"onTrigger" : "GabrielOmarCotelli 4/10/2017 09:56", | ||
"initializeContaining:andCloseButton:" : "GabrielOmarCotelli 4/10/2017 09:44" | ||
}, | ||
"class" : { | ||
"containing:andCloseButton:" : "GabrielOmarCotelli 4/10/2017 09:45", | ||
"withCloseButtonLabeled:applying:" : "GabrielOmarCotelli 4/10/2017 09:45", | ||
"with:andCloseButtonLabeled:applying:" : "GabrielOmarCotelli 4/10/2017 09:52", | ||
"closeButtonLabeled:applying:" : "GabrielOmarCotelli 4/10/2017 09:20" | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
source/Willow-Bootstrap.package/BootstrapModalFooterWebView.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,14 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 4/10/2017 09:13", | ||
"super" : "WAPresenter", | ||
"category" : "Willow-Bootstrap-WebViews", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"closeButton", | ||
"buttons" | ||
], | ||
"name" : "BootstrapModalFooterWebView", | ||
"type" : "normal" | ||
} |
1 change: 1 addition & 0 deletions
1
source/Willow-Bootstrap.package/BootstrapModalHeaderWebView.class/README.md
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 @@ | ||
I represent the header in a Bootstrap modal. I can include the dismiss button or not. |
Oops, something went wrong.