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/12/14 10:47:54 UTC

[royale-asjs] branch develop updated: Add ComboBox example with search filter to TourDeJewel

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 9ccfcaf  Add ComboBox example with search filter to TourDeJewel
9ccfcaf is described below

commit 9ccfcaf666e0da69462001222fc2ffb0e2a0ce9f
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Fri Dec 14 11:47:47 2018 +0100

    Add ComboBox example with search filter to TourDeJewel
---
 .../src/main/royale/ComboBoxPlayGround.mxml         | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/examples/royale/TourDeJewel/src/main/royale/ComboBoxPlayGround.mxml b/examples/royale/TourDeJewel/src/main/royale/ComboBoxPlayGround.mxml
index 0983454..98415f7 100644
--- a/examples/royale/TourDeJewel/src/main/royale/ComboBoxPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/ComboBoxPlayGround.mxml
@@ -205,6 +205,27 @@ limitations under the License.
 		</j:GridCell>
 	</j:Grid>
 
+	<j:Grid gap="true" itemsVerticalAlign="itemsSameHeight">
+
+		<j:GridCell desktopNumerator="1" desktopDenominator="1"
+					tabletNumerator="1" tabletDenominator="1"
+					phoneNumerator="1" phoneDenominator="1">
+
+			<j:Card>
+				<html:H3 text="Jewel ComboBox with Search Filter"/>
+
+				<j:HGroup gap="3" itemsVerticalAlign="itemsCentered">
+					<j:ComboBox id="searchcmb" labelField="label" dataProvider="{listModel.avengers}">
+						<j:beads>
+							<j:SearchFilter/>
+						</j:beads>
+					</j:ComboBox>
+				</j:HGroup>
+			</j:Card>
+		</j:GridCell>
+
+	</j:Grid>
+
 	<!-- <j:HGroup gap="3" itemsVerticalAlign="itemsCentered">
 		<j:ComboBox width="10" labelField="label" dataProvider="{listModel.avengers}"/>
 		<j:Label text="Some text 2"/>