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

iOS: Text Field/Area needs hasText method

    Details

    • Story Points:
      0.5

      Description

      Problem

      TextField and TextArea hasText() method not functioning.

      Test Case

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white',
      	exitOnClose : true,
      	fullscreen : false,
      	layout : 'vertical',
      	title : 'hasText Demo'
      });
       
      var textField = Ti.UI.createTextField({
          color: '#336699',
          backgroundColor:'#eee',
          top: 10, left: 10,
          width: 250, height: 60,
          borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED
      });
      win.add(textField);
       
      var textArea = Ti.UI.createTextArea({
          borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
          backgroundColor:'#eee',
          color: '#336699',
          top: 10, left: 10,
          width: 250, height: 200
      });
      win.add(textArea);
       
       
      win.open();
       
      textField.addEventListener('change', function(e){
          Ti.API.info('hasText? ' + e.source.hasText());
      });
       
      textArea.addEventListener('change', function(e){
          Ti.API.info('hasText? ' + e.source.hasText());
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                chaseculpepper22 Chase Culpepper
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration