1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using a style property in a template

Discussion in 'Styling and Customization Questions' started by Dadparvar, Mar 14, 2016.

  1. Dadparvar

    Dadparvar Well-Known Member

    I created a color style property, so that user can pick a color.
    2016-03-15_02-00-05.png
    Now I want to use it in my template. Not in CSS. In main template of add-on.

    This is my code:
    Code:
        $.fn.tickerme.defaults = {
            fade_speed: {$xenOptions.dadparvar_newsticker_fade_speed},
            duration: {$xenOptions.dadparvar_newsticker_duration},
            auto_stop: {$xenOptions.dadparvar_newsticker_auto_stop},
            type: '{$xenOptions.dadparvar_newsticker_type}',
            control_colour: '#333333',
            control_rollover: '#666666'
        };
    I want to get the value for "control_colour" from that style property.
    I used it:
    Code:
    control_colour: '@dad_newsticker_control_colour',
    But not worked.

    Any opinion will be appreciated.
     
  2. Dadparvar

    Dadparvar Well-Known Member

    Do you have any idea please? @katsulynx
     
  3. katsulynx

    katsulynx Well-Known Member

    Color properties are given out as rgba-value, not as hex. Does your Javascript support rgba-input?
     

Share This Page