Additional Feature/Idea for BloX List

Comments

2 comments

  • Avatar
    Max Erickson (Edited )

    You can do something like this to hide text:

    {
    "type": "TextBlock",
    "class": "condition_data",
    "text": "<p class = 'hidden'>{panel:Data}</p>"
    }

    This way you can change the background color in a BloX widget without seeing the actual text, as an example.

    0
    Comment actions Permalink
  • Avatar
    Adi Lewenstein

    Hi Donald!

    You can hide elements by applying CSS rules on them.

    You can either do this by adding a hidden class as max suggested, and applying appropriate CSS rules over it in the main style tag:

    {

      "style":"  .hidden{display: none;}  ",

    .

    .

    "body":[

    {
    "type": "TextBlock",
    "class": "condition_data hidden",
    "text": "{panel:Data}"
    }

    ]

    }

     

    Or you can apply it directly to the element:

    {
    "type": "TextBlock",
    "class": "condition_data",
    "text": "<span style= 'display: none;'>{panel:Data}</p>"
    }

     

    In version 2 of Blox (that should hopefully be released by the end of this month), we've added a simpler way to add CSS, and even hide the condition target if proper conditions are met.

     

    Thanks,

    Adi

    0
    Comment actions Permalink

Please sign in to leave a comment.