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 aa2a718  tourdejewel: another tabbar example
aa2a718 is described below

commit aa2a718ae68529f764f978adc6ae15908988a2b1
Author: Carlos Rovira <[email protected]>
AuthorDate: Sat Apr 20 20:12:00 2019 +0200

    tourdejewel: another tabbar example
---
 .../src/main/royale/TabBarPlayGround.mxml          | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/examples/royale/TourDeJewel/src/main/royale/TabBarPlayGround.mxml 
b/examples/royale/TourDeJewel/src/main/royale/TabBarPlayGround.mxml
index 1cc8622..edd78ee 100644
--- a/examples/royale/TourDeJewel/src/main/royale/TabBarPlayGround.mxml
+++ b/examples/royale/TourDeJewel/src/main/royale/TabBarPlayGround.mxml
@@ -46,6 +46,18 @@ limitations under the License.
                        {
                                return _tabBarData;
                        }
+            
+                       private var _tabBarDataSample:ArrayList = new 
ArrayList([
+                               {label:"Films", content:"films"},
+                               {label:"Collection", content:"collection"},
+                               {label:"Favorites", content:"favorites"}
+                       ]);
+                       
+                       [Bindable]
+                       public function get tabBarDataSample():ArrayList
+                       {
+                               return _tabBarDataSample;
+                       }
                ]]>
        </fx:Script>
 
@@ -127,6 +139,34 @@ limitations under the License.
 
                        </j:Card>
                </j:GridCell>
+               
+               <j:GridCell desktopNumerator="1" desktopDenominator="1" 
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1" 
phoneDenominator="1">
+                       <j:Card>
+                               <html:H3 text="Jewel TabBar"/>
+
+                               <j:TabBar>
+                                       <j:beads>
+                                               <js:ConstantBinding 
sourcePropertyName="tabBarDataSample"
+                                                                               
        destinationPropertyName="dataProvider"/>
+                                               <j:AssignTabContent 
selectedContentProperty="content">
+                                                       <j:content>
+                                                               
<j:TabBarContent>
+                                                                       
<j:SectionContent name="films">
+                                                                               
<j:Label text="Films Content Goes Here"/>
+                                                                       
</j:SectionContent>
+                                                                       
<j:SectionContent name="collection">
+                                                                               
<j:Label text="Collection Content Goes Here"/>
+                                                                       
</j:SectionContent>
+                                                                       
<j:SectionContent name="favorites">
+                                                                               
<j:Label text="Favorites Content Goes Here"/>
+                                                                       
</j:SectionContent>
+                                                               
</j:TabBarContent>
+                                                       </j:content>
+                                               </j:AssignTabContent>
+                                       </j:beads>
+                               </j:TabBar>
+                       </j:Card>
+               </j:GridCell>
 
        </j:Grid>
 

Reply via email to