cancel
Showing results for 
Search instead for 
Did you mean: 

Is this Possible?

0 Kudos

Hi Experts,

I have to achieve something as shown below.

I know I Can colour 'Alex Jones' as blue by breaking the text and combining it in HBox. i.e,

<HBox>
<Text text="Created by"/>
<Text text="{AlexJonesComesHere}" class="cssforBluecolor"/>
<Text text="at Monday ..."/>
</HBox>

But, is there a way I can achieve the same without breaking the text. I mean I would like to keep the text as below and still achieve the colouring

<Text text=""Created by {AlexJonesComesHere} at Monday 12:33PM IST" class="somecssClass"/>

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate

Hi Sudarshan,

yes, this is possible 🙂 . You could either write a custom control or use the sap.m.FormattedText control.

Answers (0)