Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19952

Windows: Image support for Ti.UI.Button

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 5.2.0
    • Component/s: Windows
    • Labels:
    • Story Points:
      5
    • Sprint:
      2015 Sprint 24 SDK

      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();
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              kiguchi Kota Iguchi
              Reviewer:
              Christopher Williams
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20657
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code