[TIMOB-13375] iOS: Allow HTML Styled Text on Label
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2015-06-01T22:48:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | look1 |
Reporter | Martin Guillon |
Assignee | Pedro Enrique |
Created | 2012-12-31T13:56:47.000+0000 |
Updated | 2019-12-31T11:11:38.000+0000 |
The native UILabel on iOS doesn't allow HTML. I'm guessing the Android equivalent does...
yes you are right that s why i did it another way: https://github.com/appcelerator/titanium_mobile/pull/3647 I am still heavily working on it, especially to fix/improve the ellipsize
Nice. Thanks for all your direct contributions btw, it helps a lot.
I updated the pull request. It should fully functional with even more new features like "multiLineEllispize" Also the pull request now include the full android equivalent. Especially i fixed the ellipsize which wasnt working on multilines. I also added "multiLineEllispize"
Seeing there were absolutely no follow up on taht pull request i decided to close that pull request. I still have fully working on android/iphone. It's also performance optimised for tableview and listview (which the old one is not, like most widgets) If you still want this, please contact me
Sorry Martin, our team is short on time to look into large feature pull requests. We will get round to it eventually! :)
I do understand that! Then a solution would be to work closer together ;) Thanks for your quick feedback
I think this is a much needed feature. Can I please put in a request that the Ti team re-consider this one. Thanks
This would help us out enormously - can you find the time to review the pull request? I'm sure this would be a feature a lot of apps would use. Please bump up the priority on this one! Thanks.
I would not count on that. That PR is really old and Appcelerator refused some of the modifications that comes with it... If you need it i advise you to look at my fork https://github.com/Akylas/titanium_mobile
Really I want to bump up the concept rather than the implementation. I can't use the label.html that's there as it's not cross platform - and it's a feature that's crying out to be used... So I'm hoping the Appcelerator guys will value it as well..
Closing ticket. Use the
AttributedString
APIs http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.AttributedStringAgain please re-consider. This is about convenience I agree, but I would have thought very useful. AttributedString is a PITA to use especially for simple label formats. In the meantime https://github.com/appcelerator-modules/ti.styledlabel does exist but I think can be a little heavyweight and not good in say listviews with hundreds of rows
Closing old "Won't fix" tickets. If you disagree, please reopen.
Hi guys, please reconsider implementation label.html property on iOS. Ti.StyledLabel is working, but as described above, it's heavyweight for use and this solution would be much more user friendly(parity with Android would be awesome). Thank you
@marian I's say Ti is dead. This ticket was opened in 2012. You really are better off with another framework.
I don't think so. Guys at Axway are doing hard work to make Titanium better and better, so I don't think, that it's dead. Also, community on Ti Slack is strong and helpfull. I tried another frameworks(Cordova, RN, Xamarin) and they were PITA in comparison with Titanium... It's true, that this ticket is old and closed, but maybe now it's time to reopen and reconsider to implement this funcionality...