[ALOY-961] Alloy: Add attributedString/attributedHintText support
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2015-01-16T15:20:17.000+0000 |
Affected Version/s | Alloy 1.3.1 |
Fix Version/s | Alloy 1.7.0 |
Components | n/a |
Labels | AttributedString, alloy |
Reporter | Matej |
Assignee | Tim Poulsen |
Created | 2014-02-19T12:04:35.000+0000 |
Updated | 2015-01-23T21:16:14.000+0000 |
Description
Support for attributedString/attributedHintText in Alloy (XML, TSS).
var attributedString = Ti.UI.iOS.createAttributedString({
// ...
});
// OR
function attributedString()
{
return Ti.UI.iOS.createAttributedString({
// ...
});
}
<Alloy>
...
<TextField attributedString="attributedString"/>
<TextField attributedHintText="attributedString"/>
...
</Alloy>
Moving this feature request to engineering for evaluation. Titanium 3.2.0 release introduced AttributedString concept for iOS platform and this request is to expose the same functionality on Alloy.
*Just a little note. These properties should work also for a ListItem with a Label (For instance). Right now it is quite complex, in some cases I think that it is not even possible.
Community PR: https://github.com/appcelerator/alloy/pull/644
Moving to future sprint so that we can account for TIMOB-18062 and TIMOB-15998 (Android support for AttributedString and parity across platforms). We generally avoid requiring specific SDK versions with Alloy. So optimally, we'd support both the Ti.UI.iOS.AttributedString and Ti.UI.AttributedString namespaces depending on the SDK version. Though, if building for Android with less than 3.6.0, we'd need to output an error/warn message.
On hold, waiting on the resolution of TIMOB-18062
Note to QE: To test: 1. Install a Titanium SDK 3.6.0.v20150115154220 or newer (so as to include cross-platform support for AttributedString) and select it as your active SDK 2. Build the included test/app/testing/ALOY\-961 app for iOS and Android. The app demonstrates using AttributedString with a label, text field, and text area. 3. Select an earlier SDK version, try building the app for either platform. You should receive an error message that AttributedString requires SDK 3.6.0 or newer. 4. All jake tests should pass with either a supporting or earlier SDK set as your active SDK version.
PR merged