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

Edit Style Property Definition: On/Off Check Box

Discussion in 'Styling and Customization Questions' started by Junior, Feb 6, 2013.

  1. Junior

    Junior Well-Known Member

    I'm creating a custom style property and would like to use the On/Off Check Box. How would I get it to display:inline an item when the box is checked and display:none when the box is unchecked?

    Figured it out

    Using the same On/Off feature, how would I do an if statement for text or javascript?

    If on, show javascript, else don't show javascript. I have:

    <xen:if is="!{$propertyhere}">
    This doesn't seem to show with the style property box on or off.
    <xen:else />

  2. Junior

    Junior Well-Known Member

    A bit on topic, is it possible to have a created style property hook to a template hook with a Parameter?
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    <xen:if is="!@propertyhere">
    Style properties use @
  4. Junior

    Junior Well-Known Member


    Do you know anything about this?

Share This Page