[ALOY-1280] Support CommandBar in XML markup
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | None |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2015-07-07T23:57:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.7.0 |
Components | XML |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | Feon Sua Xin Miao |
Created | 2015-06-19T23:15:33.000+0000 |
Updated | 2015-07-16T22:21:48.000+0000 |
Description
Windows Phone has a platform-specific feature called the CommandBar, similar to the Android Action Bar or iOS Toolbar. The Titanium.UI.Windows.CommandBar object is assigned an array of buttons and separators to its items property for it to display.
For a classic Titanium example, see: https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.UI.Windows.CommandBar
Example of an Alloy view using the CommandBar
{noformat}
{noformat}
Looking at https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.UI.iOS.Toolbar this should be:
The 4.1.0 sample app includes a polyfill using the module attribute. It does not use
<Items>
as Alloy will only allow that element under specific parent elements: https://github.com/appcelerator-developer-relations/appc-sample-ti410/blob/master/app/lib/polyfill.jsPR: https://github.com/appcelerator/alloy/pull/706
I saw you assigned me to review, what do you need [~fmiao]? I added a comment on the PR code-related and compiled the test app which looks fine.
[~fmiao] I don't have write access to merge, but I reviewed it and it works. I just think we don't need to specify the full list of constants: https://github.com/appcelerator/alloy/pull/706/files#r34011198
PR Merged.