Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-515

Document constants used throughout alloy examples

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Alloy 0.3.6
    • Fix Version/s: 2013 Sprint 04
    • Component/s: Documentation
    • Labels:
    • Environment:

      Ti SDK 3.0 & 3.1 CU Builds
      iOS 6 & Android 2.3
      Alloy 0.3.6

      Description

      Feature

      Document constants used throughout alloy examples. From a default Alloy project use the following controller and global configuration file. OS_ANDROID will get through both iOS and Android platforms.

      app/config.json

      {
      	"global": {}, 
      	"myKeys": { "key1": 1, "key2": 2},
      	"env:development": {}, 
      	"env:test": {}, 
      	"env:production": {}, 
      	"dependencies": {}
      }
      

      Controller
      • app/controllers/index.js

        function doClick(e) {  
            //alert($.label.text);
           if(OS_ANDROID){
            	alert('it is android');
        	}else{
            	alert('it is not android');
        	}
        }
         
        $.index.open();
        

        Attachments

          Activity

            People

            • Assignee:
              tlukasavage Tony Lukasavage
              Reporter:
              egomez Eduardo Gomez (Inactive)
            • Watchers:
              2 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 Integration