on 2017 Sep 18 5:38 PM
Can i apply two CSS classes to one FORMTTEDTEXTVIEW component ?
I need to achieve two different colors for a single single sentence and show it on a FORMATTEDTEXTVIEW .
I have tried the following html text and i have defined two css classes in 'colorblue' and 'colorred' in css file
<p class="colorblue"> Some text <p>
<p class="colorred"> Another text :)</p>
var html = '<p> Some text <p> <p> Another text :)</p>';
FORMATTEDTEXTVIEW_1.setHtmlText(html);
I dont want to use two Components as text is dynamic and length isnt constant .
" This a string text which i need in two different colors and its dynamic "
Thanks,
Pramod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pramod,
Did you try executing the following script code to apply the CSS?:
FORMATTEDTEXTVIEW_1.setCSSClass("colorblue colorred")
Regards,
Mustafa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.