Skip to Content

ObjectAttribute apply CSS

Hi,

I have an ObjectListItem control which displays a collection. I am trying to make the ObjectAttribute "ATTR1" in red color. I tried using CSS, accessing Dom reference etc..COuldnt get anything to work.

Any suggestions on how I can make ObjectAttribute ATTR1 display in red color ?

Regards,

Murali.

DOM.jpg (43.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 26, 2015 at 04:21 AM

    HI Murali

    You can addStyleClass like this

    JS Bin - Collaborative JavaScript Debugging

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2015 at 04:21 AM

    Hi Murali,


    Try this in your CSS -

    #ATTR1-text{
      color:#ff0000;
    }
    

    Check a sample here: JS Bin - Collaborative JavaScript Debugging

    Regards,

    Sai Vellanki.

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks,

      I am using a CSS file with the below entry. I have loaded the CSS file in the init() of the view and can see it loaded in the Elements tab of Chrome developer trace. For some reason it doesnt work.

      #ATTR1-text{   

           color : #FF0000 !important;

      }