[TIMOB-14220] BlackBerry: Implement apiName constants
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-06-27T21:59:49.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.2.0 |
| Components | BlackBerry |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Pedro Enrique |
| Created | 2013-06-13T19:10:44.000+0000 |
| Updated | 2017-03-09T07:43:23.000+0000 |
Description
We need to implement the apiName constants. Every proxy will need to expose this constant. The spec is listed in TIMOB-13968
PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/118 Test case
var win = Titanium.UI.createWindow({ title:'apiName test', layout:'vertical' }); var button = Titanium.UI.createButton({ title:'Click for network test', bottom: 50, width:Ti.UI.SIZE, height:Ti.UI.SIZE }); var map = Ti.Map.createView(); var view = Ti.UI.createView(); var label = Ti.UI.createLabel(); var scrollView = Ti.UI.createScrollView(); var scrollableView = Ti.UI.createScrollableView(); var button2 = Ti.UI.createButton(); button.addEventListener('click',function(e){ alert('map: ' + map.apiName); alert('view: ' + view.apiName); alert('label: ' + label.apiName); alert('scrollView: ' + scrollView.apiName); alert('scrollableView: ' + scrollableView.apiName); alert('button: ' + button2.apiName); }); win.add(button); win.open();Closing ticket as fixed.