You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Hugo Ferreira <hf...@gmail.com> on 2020/08/11 15:27:53 UTC

Change CheckBox text color

How to change the text color of a Jewel CheckBox ?

Re: Change CheckBox text color

Posted by Hugo Ferreira <hf...@gmail.com>.
Hi Carlos,

It worked.
Thank you very much.

Carlos Rovira <ca...@apache.org> escreveu no dia terça, 11/08/2020
à(s) 19:43:

> Hi Hugo,
>
> To change *all* Checkboxes, in mxml (you can add to external css like we do
> in TDJ or other examples, but to show other valid way too):
>
> <fx:Style>
> @namespace "http://www.w3.org/1999/xhtml";
> .jewel.checkbox span {
> color: red;
> }
> </fx:Style>
>
> To change only one component:
>
> .jewel.checkbox.redLabel span {
> color: red;
> }
>
> Then in the instance:
>
> <j:CheckBox text="Not Checkbox" className="redLabel"/>
>
> HTH
>
> Carlos
>
>
> El mar., 11 ago. 2020 a las 17:28, Hugo Ferreira (<hferreira.80@gmail.com
> >)
> escribió:
>
> > How to change the text color of a Jewel CheckBox ?
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Re: Change CheckBox text color

Posted by Carlos Rovira <ca...@apache.org>.
Hi Hugo,

To change *all* Checkboxes, in mxml (you can add to external css like we do
in TDJ or other examples, but to show other valid way too):

<fx:Style>
@namespace "http://www.w3.org/1999/xhtml";
.jewel.checkbox span {
color: red;
}
</fx:Style>

To change only one component:

.jewel.checkbox.redLabel span {
color: red;
}

Then in the instance:

<j:CheckBox text="Not Checkbox" className="redLabel"/>

HTH

Carlos


El mar., 11 ago. 2020 a las 17:28, Hugo Ferreira (<hf...@gmail.com>)
escribió:

> How to change the text color of a Jewel CheckBox ?
>


-- 
Carlos Rovira
http://about.me/carlosrovira