dalihub / dali-toolkit

Provides reusable UI Controls and building blocks for applications.
Apache License 2.0
7 stars 14 forks source link

[Text] Introduce AttributedText Class #13

Closed Ali-Alzyoud closed 1 year ago

Ali-Alzyoud commented 3 years ago

Add public API to deal with AttributedText Class, which allows the user to set/get/modify the rich text(plain text + formats) in text controllers. This is similar to what other platforms have:

https://developer.apple.com/documentation/foundation/nsattributedstring https://developer.android.com/guide/topics/text/spans

For Phase 1: we will support immutable Class only.

Additional: Supporting HTML/CSS can be done, by extending AttributedText Class to save/load from HTML content. (#6)

adeelkazmi commented 1 year ago

The span functionality has recently been added so closing this.