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

Windows: Deprecate Ti.UI.View.enabled, rename to touchEnabled

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: Release 5.4.0
    • Component/s: iOS
    • Environment:

      Tested on:
      Windows 10 Pro / OSX El Capitan Version 10.11.4
      Nexus 6P Android 6.0 / iOS 8.4 / 9.3
      Appc Studio: 4.6.0.201604081249
      Ti SDK: 5.3.0.v20160421080259
      Appc NPM: 4.2.5-3
      Appc Core: 5.3.0-34
      Node: v4.4.2

    • Story Points:
      2
    • Sprint:
      2016 Sprint 09 SDK

      Description

      While reviewing a windows ticket, implementing the enabled property for view elements, it was found that it was not implemented for iOS. This should be fixed to achieve parity between android & windows.

      TEST CODE:

      var win = Ti.UI.createWindow({});
       
      var view1 = Ti.UI.createView({
          backgroundColor: "Magenta",
          enabled: true,
          left: 0,
          top: 50,
          height: 100,
          width: 100
      });
       
      view1.addEventListener('click', function() {
          alert("CLICKED! 1");
      });
       
      var view2 = Ti.UI.createView({
          backgroundColor: "green",
          enabled: false,
          top: 50,
          left: 200,
          height: 100,
          width: 100
      });
       
      view2.addEventListener('click', function() {
          alert("CLICKED! 2");
      });
       
      win.add(view1);
      win.add(view2);
      win.open()
      

      Steps to Reproduce

      1. Create a default classic mobile project.
      2. Apply test code above to app.js file.
      3. Deploy app to iOS simulator / device.
      4. After launching the app, click / tap on left view.
      5. Click / tap on right view.

      Actual Result

      Left view enabled property is set to true : Alert appears when clicked.
      Right view enabled property is set to false : Alert appears when clicked.

      Expected Result.

      Left view enabled property is set to true : Alert should appear when clicked.
      Right view enabled property is set to false : Alert should NOT appear when clicked.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                htbryant Harry Bryant
                Reviewer:
                Kota Iguchi
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code