(Quick Reference)

ui:ifSetActive

Purpose

Executes the body of the tag only if the current UI Set equals or derives from the UI Set name supplied.

This is useful for plugin UI GSPs that may need to include different content depending on the current UI Set in use.

Example

You might have a plugin GSP that uses custom JS code, so you switch on the UI Set:

<ui:ifSetActive name="Bootstrap">
    <r:require module="myplugin_jquery_widget"/>
</ui:ifSetActive>
<ui:ifSetActive name="YUI">
    <r:require module="myplugin_yui_widget"/>
</ui:ifSetActive>

This allows you to draw in different JS code based on what the application developer is using.

Attributes

NameRequired?Description
nameYesA UI set name i.e. "Bootstrap"