You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/09/01 13:57:02 UTC
[royale-asjs] branch develop updated: add valid event on validator
example to show an Alert when user clicks send button and the form is valid
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 75929cd add valid event on validator example to show an Alert when user clicks send button and the form is valid
75929cd is described below
commit 75929cd3f63f19664f1abdda64ca1bbea10e0942
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Sep 1 15:56:57 2018 +0200
add valid event on validator example to show an Alert when user clicks send button and the form is valid
---
.../JewelExample/src/main/royale/FormsValidationPlayGround.mxml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/royale/JewelExample/src/main/royale/FormsValidationPlayGround.mxml b/examples/royale/JewelExample/src/main/royale/FormsValidationPlayGround.mxml
index 1220490..d6dbcfd 100644
--- a/examples/royale/JewelExample/src/main/royale/FormsValidationPlayGround.mxml
+++ b/examples/royale/JewelExample/src/main/royale/FormsValidationPlayGround.mxml
@@ -38,8 +38,8 @@ limitations under the License.
return (host.text == randomCode) ? "" : "The entered code doesn't match " + randomCode;
}
- public function doSummit(event:Event):void {
- Alert.show("Data is valid submitted");
+ public function doSubmit(event:Event):void {
+ Alert.show("Data is valid submitted", "Sending Form!");
}
]]>
</fx:Script>
@@ -47,7 +47,7 @@ limitations under the License.
<j:Card width="600">
<html:H3 text="Jewel Form And Validators"/>
- <j:Form>
+ <j:Form valid="doSubmit(event)">
<j:beads>
<j:FormValidator trigger="{btn}" triggerEvent="click"/>
</j:beads>