[ALOY-1246] Alloy: LeftNavButton/RightNavButton should support text node for title
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Alloy 1.5.1 |
Fix Version/s | n/a |
Components | XML |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Tim Poulsen |
Created | 2015-02-14T14:32:06.000+0000 |
Updated | 2015-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;
No comments