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 2021/02/08 17:37:14 UTC
[royale-asjs] branch develop updated: tour-de-jewel: example of use
new bead BadgeWithMouseClick
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 793715c tour-de-jewel: example of use new bead BadgeWithMouseClick
793715c is described below
commit 793715ca70cdba03bf3cb5bf894d4e99f717814f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Mon Feb 8 18:37:01 2021 +0100
tour-de-jewel: example of use new bead BadgeWithMouseClick
---
examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
index eb96f21..1d19544 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
@@ -30,6 +30,7 @@ limitations under the License.
<![CDATA[
import org.apache.royale.events.Event;
import org.apache.royale.icons.MaterialIcon;
+ import org.apache.royale.jewel.Alert;
import org.apache.royale.jewel.supportClasses.ISelectableContent;
import org.apache.royale.jewel.supportClasses.ResponsiveSizes;
import org.apache.royale.routing.RouteState;
@@ -291,7 +292,7 @@ limitations under the License.
<j:BarSection itemsHorizontalAlign="itemsRight">
<j:IconButton>
<j:beads>
- <j:Badge text="27" emphasis="primary" preindex="true" overlap="true"/>
+ <j:BadgeWithMouseClick text="✖" emphasis="primary" preindex="true" overlap="true" click="Alert.show('This example shows use of BadgeWithMouseClick', 'Badge With Mouse Click');"/>
</j:beads>
<j:icon>
<js:MaterialIcon text="{MaterialIconType.ADD_ALARM}" />