Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19952] Windows: Image support for Ti.UI.Button

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-12-04T00:25:03.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.2.0
ComponentsWindows
Labelsqe-5.2.0
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-11-13T05:35:27.000+0000
Updated2016-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();

Comments

  1. Kota Iguchi 2015-12-03

    https://github.com/appcelerator/titanium_mobile_windows/pull/491
  2. Josh Longton 2016-02-04

    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.

JSON Source