CurrentUITemplate

CurrentUITemplate is a client-side JavaScript object that represents the current UI template on an application page. Use the PageContext function getCurrentUITemplate() to access the CurrentUITemplate object.

Note: The methods in this section apply to the new UI, not the classic UI. Most Platform tenants are using the new UI. However, tenants on older Private Cloud installations might still be using the classic UI.

Interface

CurrentUITemplate supports the following functions:

  • getType() — Returns the current UI Blueprint type.
  • getTypeName() — Returns the current UI Blueprint name.
  • getCssIdentifier() — Returns the CSS classname for the current UI Blueprint.

Example

For the "Modern-Vertical Menus" UI Blueprint, the CurrentUITemplate functions return the following output:

rbf_getPageContext().getCurrentUITemplate().getType() - Returns 2

rbf_getPageContext().getCurrentUITemplate().getCssIdentifier()- Returns "rbs-ui-template-type-2"

rbf_getPageContext().getCurrentUITemplate().getTypeName()- Returns 
"Modern - Vertical Menus"