Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1246] Alloy: LeftNavButton/RightNavButton should support text node for title

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sAlloy 1.5.1
Fix Version/sn/a
ComponentsXML
Labelsn/a
ReporterFokke Zandbergen
AssigneeTim Poulsen
Created2015-02-14T14:32:06.000+0000
Updated2015-02-14T14:32:06.000+0000

Description

Since some time you can do:
<LeftNavButton title="Left" />
instead of:
<LeftNavButton><Button title="Left"></LeftNavButton>
A logical next step would be to support:
<LeftNavButton>Left</LeftNavButton>
Which currently doesn't work, as shown by the next example:
<Alloy>
  <NavigationWindow>
    <Window title="Title">
      <LeftNavButton title="Left" />
      <RightNavButton>Right</RightNavButton>
    </Window>
  </NavigationWindow>
</Alloy>
Which currently compiles to:
    $.__views.__alloyId0 = Ti.UI.createWindow({
        title: "Title",
        id: "__alloyId0"
    });
    $.__views.__alloyId1 = Ti.UI.createButton({
        title: "Left",
        id: "__alloyId1"
    });
    $.__views.__alloyId0.leftNavButton = $.__views.__alloyId1;
    $.__views.__alloyId0.rightNavButton = void 0;

Comments

No comments

JSON Source