Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Styling customization questions

HI Ellen,

please show us some screen shots to clarify your problem.

Regards.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Styling customization questions

This is the implementation of the code. Image

The problem is that mobilelabel_596 is populated in the same service as where this code is so it can't retrieve the value because it isn't there yet. I can't use local storage either because not every item has the same value.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Styling customization questions

Hi Ellen,

Thanks it's clear for this time. So "mobilelabel_596" is label inside your list item which you populate with some value.

For this goal:

  1. Delete current link and JS code from current component.
    Details: http://prntscr.com/6qz3e3/direct

  2. Click "JS" for root listitem component.
    Details: http://prntscr.com/6qz3xz/direct

  3. Populate it with following JS code:

    pre

    var color = jQuery(element).find('[name="mobilelabel_596"]').text());

    //Don't understand this condition. May be you need change it. I
    if (color == "true" ) {
    //Change color for "mobilelabel_588name" component.
    jQuery(element).find('[name="mobilelabel_588name"]').css({'color':"#900"});
    }

    /pre

    Regards.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Styling customization questions

There are some errors with that code.
Image

Return to “Issues”