IsNavBarEnabled function

Syntax

IsNavBarEnabled()

Description

Use the IsNavBarEnabled function to return a Boolean value indicating whether the NavBar button is enabled on the component.

Important:

Use this function within fluid applications only.

Parameters

None.

Returns

A Boolean value.

Example

If Not (IsNavBarEnabled()) Then
   PT_WORK.PT_BUTTON_NAVBAR.Visible = False;
Else
   If %Request.BrowserDeviceFormFactor = %FormFactor_Small Then
      PT_WORK.PT_BUTTON_NAVBAR.Label = PT_WORK.PT_BUTTON_NAVBAR.GetLongLabel("PT_NAVIGATOR");
   End-If;
   AddStyleSheet(StyleSheet.PTNUI_NAVBAR_CSS);
   AddOnLoadScript("PTNavBar.Url = '" | GetNavBarURL( True) | "';");
End-If;