[TIMOB-5186] iOS: Feature Request to Add TextField hintTextColor and Size attributes
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-11-19T20:26:43.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | TiAPI |
| Labels | Color, TextField,, hintText |
| Reporter | Adrian Kirk-Burnnand |
| Assignee | Ingo Muschenetz |
| Created | 2011-08-24T20:03:41.000+0000 |
| Updated | 2017-03-16T22:50:04.000+0000 |
I'd like too ! It will be very good if you add this :-)
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();Closing ticket as fixed.