Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
markwilcox
Posts: 51
Registered: ‎11-23-2012
My Device: BB10 Dev Alpha

Re: Set some word of line as Bold in cascades (giving HTML styles)

This is a very handy thread.

 

I'm currently trying to use this HTML formatted text in my app.  It would be great to have some more documentation on it.  Some things I'd really like to know are:

1) What tags are supported?

2) What's the recommended way to color a section of text? (old-fashioned font tag with color attribute doesn't work).

3) What characters do I need to escape in the text to ensure it doesn't fail? (my text is coming from the network, so I need to pre-process it).

 

Anyone got any ideas or pointers to examples?

 

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Set some word of line as Bold in cascades (giving HTML styles)

It's documented now, with the new beta:

https://developer.blackberry.com/cascades/documentation/ui/text/styles.html

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
markwilcox
Posts: 51
Registered: ‎11-23-2012
My Device: BB10 Dev Alpha

Re: Set some word of line as Bold in cascades (giving HTML styles)

Thanks - that's exactly what I was looking for, escape characters and all.  The doc could do with a summary at the top with hyperlinks to sections, if you hadn't told me that's where I'd find the HTML styling info I might not have read far enough down. :smileyhappy:

 

I have some pretty styled text in spans now.

Please use plain text.