Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5186] iOS: Feature Request to Add TextField hintTextColor and Size attributes

GitHub Issuen/a
TypeNew Feature
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-11-19T20:26:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
LabelsColor, TextField,, hintText
ReporterAdrian Kirk-Burnnand
AssigneeIngo Muschenetz
Created2011-08-24T20:03:41.000+0000
Updated2017-03-16T22:50:04.000+0000

Description

Feature Request

It would be great to be able to specify the hintText color and size for TiUITextFields.

Comments

  1. Bacto 2011-09-12

    I'd like too ! It will be very good if you add this :-)
  2. Pedro Enrique 2013-11-19

    This will be possible in 3.2.0 using the Ti.UI.iOS.AttributedString() component You can download for the CI build and try it out.
       var win = Ti.UI.createWindow({
           backgroundColor: '#CCC'
       });
       
       var hintText = 'This is a hint text';
       var attributedString = Ti.UI.iOS.createAttributedString({
           attributes: [
               {
                   type: Ti.UI.iOS.ATTRIBUTE_FOREGROUND_COLOR,
                   value: 'blue', 
                   range: [0, hintText.length]
       
               }
           ],
           text: hintText
       });
       
       var textField = Ti.UI.createTextField({
           attributedHintText: attributedString,
           left: 10,
           right: 10,
           borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED
       });
       
       win.add(textField);
        
       win.open();
       
  3. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source