Titanium JIRA Archive
Alloy (ALOY)

[ALOY-287] Implement Ti.UI.iOS.TabbedBar parser

GitHub Issuen/a
TypeStory
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2012-09-21T06:46:47.000+0000
Affected Version/s2012 Sprint 19
Fix Version/s2012 Sprint 19, Release 3.0.0
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-09-21T04:35:17.000+0000
Updated2018-03-07T22:26:14.000+0000

Description

Proposed syntax:
<TabbedBar>
        <Labels>
            <Label>tab 1</Label>
            <Label>tab 1</Label>
            <Label>tab 1</Label>
        </Labels>

        <!-- any other views you intend to overlay -->
    </TabbedBar>

Comments

  1. Tony Lukasavage 2012-09-21

    Took a little longer. I thought it was just string, but when I checked the docs, it also handles an abstract TabItemType type.
       <TabbedBar platform="ios" onClick="sayHi">
       	<!-- These get added to the TabbedBar "labels" array -->
       	<Labels>
       		<!-- Specify text with node text or "title" attribute. -->
       		<Label>tab 1</Label>
       		<Label title="tab 3"/>
       
       		<!-- uses images and/or widths -->
       		<Label width="40" image="/KS_nav_ui.png"/>
       		
       		<!-- set as disabled -->
       		<Label enabled="false">disabled</Label>
       
       		<!-- empty labels will print a warning (no properties) -->
       		<!-- <Label/> -->
       	</Labels>
       
       	<!-- 
       		additional views get added as normal, over the labels, as
       	    per the documentation of the add() function.
       	 -->
       	<!-- <View opacity="0.25" backgroundColor="#a00" width="50%"/> -->
       </TabbedBar>
       

JSON Source