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

iOS: attributedString does not override text property like documented

    Details

      Description

      The documentation says a Label's text property will be ignored if attributedString. However, the following test case shows it's not:

      Test case

      Remove the comments before line #7 and the label will say "Text".

      var win = Titanium.UI.createWindow({
        backgroundColor: '#ddd',
      });
       
      win.add(Ti.UI.createLabel({
        top: 100,
        // text: 'Text',
        attributedString: Ti.UI.createAttributedString({
          text: 'Attributed String',
          attributes: [{
            type: Ti.UI.iOS.ATTRIBUTE_FOREGROUND_COLOR,
            value: 'red',
            range: [0, 10]
          }]
        })
      }));
       
      win.open();
      

      The same might also be true for the value property of TextArea and TextField.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fokkezb Fokke Zandbergen
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code