[TIMOB-18499] TiAPI: Ti.UI.ATTRIBUTE_LINK needs to support click events
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 3.5.0 |
Fix Version/s | Release 4.0.0 |
Components | iOS |
Labels | TCSupport |
Reporter | Shannon Hicks |
Assignee | Unknown |
Created | 2015-01-15T13:48:32.000+0000 |
Updated | 2018-02-28T19:54:54.000+0000 |
Description
Is it possible that Ti.UI.ATTRIBUTE_LINK could respond to click events in addition to longpress? It is difficult to explain to users that they see something that looks clickable, but no, they need to longpress it. We end up having to use StyledLabel modules to get this working.
I didn't flag this as iOS or Android because it should be implemented for both, now that Android supports attributed strings TIMOB-15998
Test case
Changing to TiAPI as requested by Shannon.
looks like the test case needs tweaking... createAttributedString has been moved to
Titanium.UI.createAttributedString
in 4.0.0 [https://github.com/appcelerator/titanium_mobile/blob/124852b1b7def38a37e565cacff067bca3dcdd65/apidoc/Titanium/UI/iOS/Attribute.yml#L5] via TIMOB-15998Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6653
@vduggal The PR only addresses iOS. That doesn't Resloved/Fixed this ticket. It only creates another iOS/Android parity issue.
@[~iotashan] The Android work is done in a separate task as a new feature.
Do you have the JIRA ticket for that handy? I couldn't find one that specifically calls this out or shows a test case for it.
@[~iotashan] See TIMOB-18608
Verified fixed using: Titanium SDK 4.0.0.v20150311105810 Studio 4.0.0.201503062102 CLI 3.4.2 Xcode 6.2 Node 0.10.36 On: Galaxy Note 2, Android 4.3 iPhone 6, iOS 8.2 Click and Longpress events correctly fired.