[ALOY-287] Implement Ti.UI.iOS.TabbedBar parser
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-09-21T06:46:47.000+0000 |
Affected Version/s | 2012 Sprint 19 |
Fix Version/s | 2012 Sprint 19, Release 3.0.0 |
Components | XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-09-21T04:35:17.000+0000 |
Updated | 2018-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
- 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>