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

MobileWeb: Implement maxLength for TextArea

    Details

      Description

      1. Run this code

      var win = Ti.UI.createWindow();
       
       
      var txt = Ti.UI.createTextArea({
          top: 150,
          height: 100,
          backgroundColor: "white" 
      });
       
      var button = Ti.UI.createButton( {
          title: "set max length to 10"
      });
       
      button.addEventListener('click', function(e) {
         txt.maxLength = 10;
      });
      Ti.API.info("maxLength: " + txt.maxLength);
      win.add(txt);
      win.add(button);
      win.open();
      

      2. Check log, make sure maxLength is -1
      3. Click on button
      4. Start typing, the content should not exceed 10 characters.
      5. Re-run code, this time enter 20+ characters before click on button

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhughes Bryan Hughes
                Reporter:
                hpham Hieu Pham
              • Watchers:
                1 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