You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

Enable / disable CSS attributes on HTML elements conditionally

You can use the built-in if() expression to control CSS attributes in HTML elements:

fig

If the condition does not apply, the special value null can be used to prevent the rendering of an empty class="" attribute in the HTML output.

Search results for "Enable / disable CSS attributes on HTML elements conditionally"

We could not find anything matching "Enable / disable CSS attributes on HTML elements conditionally" in our documentation. Please rephrase your search.

You can also ask your questions in the Structr Google Group or create a free account in the Structr Support Portal.
Click here to send feedback to the Structr team.