[ALOY-1483] Support composite use of L(key) and strings in XML attribute values
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | XML |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Bruce Wayne |
Created | 2016-04-01T11:25:27.000+0000 |
Updated | 2016-04-01T11:25:27.000+0000 |
Description
I'd like to be able to do:
<Alloy>
<Label text="L('key') :" />
</Alloy>
Currently this compiles to:
$.__views.__alloyId0 = Ti.UI.createLabel({
text: 'L("time") :',
id: "__alloyId0"
});
While I'd like it to be:
$.__views.__alloyId0 = Ti.UI.createLabel({
text: L("time") + ' :',
id: "__alloyId0"
});
No comments