[TIMOB-19952] Windows: Image support for Ti.UI.Button
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-12-04T00:25:03.000+0000 |
Affected Version/s | Release 5.1.0 |
Fix Version/s | Release 5.2.0 |
Components | Windows |
Labels | qe-5.2.0 |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2015-11-13T05:35:27.000+0000 |
Updated | 2016-02-05T00:04:30.000+0000 |
Description
Currently
Ti.UI.Button
doesn't support image
property.
var window = Ti.UI.createWindow({
backgroundColor: 'green'
});
var view = Ti.UI.createView({
backgroundColor: 'red',
width: '100%',
height: 150
});
var button = Ti.UI.createButton({ title: 'Bar bar bar' });
//button.image = "http://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/logo.png";
button.image = Ti.Filesystem.getFile('Logo.png').read();
view.add(button);
window.add(view);
window.open();
https://github.com/appcelerator/titanium_mobile_windows/pull/491
Verified as fixed, issue resolved with PR related to . Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Windows 8.1 Studio: 4.5.0.201602040421 Ti SDK: 5.2.0.v20160204140025 Appc NPM: 4.2.3-2 App CLI: 5.2.0-242 Node v4.2.6 Closing Ticket.