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 a3fbacd tour-de-jewel: add Jewel Switch examples in CheckBox and
RadioButton pages
a3fbacd is described below
commit a3fbacd98731e54bf9a1e585b91061fc9b089b2c
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Jan 4 16:20:46 2021 +0100
tour-de-jewel: add Jewel Switch examples in CheckBox and RadioButton pages
---
.../src/main/royale/CheckBoxPlayGround.mxml | 27 ++++++++++++++++++++--
.../src/main/royale/RadioButtonPlayGround.mxml | 24 ++++++++++++++++++-
2 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
b/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
index f2b30bb..984d78f 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
@@ -34,11 +34,11 @@ limitations under the License.
</c:description>
</c:ExampleHeader>
- <j:GridCell desktopNumerator="1" desktopDenominator="1"
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1"
phoneDenominator="1">
+ <j:GridCell desktopNumerator="1" desktopDenominator="2"
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
phoneDenominator="1">
<j:Card>
<html:H3 text="Jewel CheckBox"/>
- <j:CheckBox text="Not Checkbox"/>
+ <j:CheckBox text="Not Checked"/>
<j:CheckBox text="Checked" selected="true"/>
@@ -56,11 +56,34 @@ limitations under the License.
</j:Card>
</j:GridCell>
+ <j:GridCell desktopNumerator="1" desktopDenominator="2"
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
phoneDenominator="1">
+ <j:Card>
+ <html:H3 text="Jewel SwitchCheckBox"/>
+
+ <j:SwitchCheckBox text="Not Checked"/>
+
+ <j:SwitchCheckBox text="Checked"
selected="true"/>
+
+ <j:SwitchCheckBox text="Disabled">
+ <j:beads>
+ <j:Disabled/>
+ </j:beads>
+ </j:SwitchCheckBox>
+
+ <j:SwitchCheckBox text="Checked And Disabled"
selected="true">
+ <j:beads>
+ <j:Disabled/>
+ </j:beads>
+ </j:SwitchCheckBox>
+ </j:Card>
+ </j:GridCell>
+
<j:GridCell desktopNumerator="1" desktopDenominator="1"
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1"
phoneDenominator="1">
<j:Card>
<html:H3 text="Jewel CheckBox Sizing"/>
<j:CheckBox text="No size"/>
+
<j:CheckBox text="width and height to 60">
<j:beads>
<j:InputButtonSize width="60"
height="60"/>
diff --git
a/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
b/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
index 2451b49..003648c 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
@@ -34,7 +34,7 @@ limitations under the License.
</c:description>
</c:ExampleHeader>
- <j:GridCell desktopNumerator="1" desktopDenominator="1"
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1"
phoneDenominator="1">
+ <j:GridCell desktopNumerator="1" desktopDenominator="2"
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
phoneDenominator="1">
<j:Card>
<html:H3 text="Jewel RadioButton"/>
@@ -56,6 +56,28 @@ limitations under the License.
</j:Card>
</j:GridCell>
+ <j:GridCell desktopNumerator="1" desktopDenominator="2"
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1"
phoneDenominator="1">
+ <j:Card>
+ <html:H3 text="Jewel SwitchRadioButton"/>
+
+ <j:SwitchRadioButton text="SwitchRadioButton 1"
groupName="radios" value="Test 1"/>
+ <j:SwitchRadioButton text="SwitchRadioButton 2"
groupName="radios" value="Test 2" selected="true"/>
+ <j:SwitchRadioButton text="SwitchRadioButton 3"
groupName="radios" value="Test 3"/>
+
+ <j:SwitchRadioButton text="Disabled">
+ <j:beads>
+ <j:Disabled/>
+ </j:beads>
+ </j:SwitchRadioButton>
+
+ <j:SwitchRadioButton text="Set and Disabled"
selected="true">
+ <j:beads>
+ <j:Disabled/>
+ </j:beads>
+ </j:SwitchRadioButton>
+ </j:Card>
+ </j:GridCell>
+
<j:GridCell desktopNumerator="1" desktopDenominator="1"
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1"
phoneDenominator="1">
<j:Card>
<html:H3 text="Jewel RadioButton Sizing"/>