[ALOY-786] Alloy parser for Switch should set the value property on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-10T23:30:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.3.0 |
Components | Titanium SDK, XML |
Labels | qe-testadded |
Reporter | Daniel Sefton |
Assignee | Tony Lukasavage |
Created | 2013-08-13T16:20:44.000+0000 |
Updated | 2013-10-10T23:30:24.000+0000 |
Description
There is a known issue (TIMOB-9007) with Ti.UI.Switch where it won't render properly if the
value
property is not set on creation. The Alloy parser should detect when this property is not provided and add it to the creation dictionary.
Hi Paul, It would help us out if you could provide an Alloy test case which reproduces the problem. Thanks!
To reproduce, create an Alloy view with the following markup:
The switch control will not be displayed. I have sent a pull request on GitHub which fixes this issue: https://github.com/appcelerator/alloy/pull/219/commits
PR: https://github.com/appcelerator/alloy/pull/224 original PR: https://github.com/appcelerator/alloy/pull/219 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/ui/switch Functional test should be confirmed on all platforms that support. Some guidance for these tests:
iOS
Make sure that a single switch shows up, that's it.Android
make sure a default switch, a switch with different title(On/Off) properties, and a checkbox appear. These properties are claimed to be supported on Mobileweb and tizen as well.