Page 3 of 3

Styling customization questions

Posted: Mon Apr 06, 2015 11:29 pm
by Yurii Orishchuk

HI Ellen,

please show us some screen shots to clarify your problem.

Regards.


Styling customization questions

Posted: Mon Apr 06, 2015 11:59 pm
by Ellen Schlechter

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.


Styling customization questions

Posted: Wed Apr 08, 2015 12:31 am
by Yurii Orishchuk

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.


Styling customization questions

Posted: Wed Apr 08, 2015 1:20 am
by Ellen Schlechter

There are some errors with that code.
Image