Dynamic Visibility

๐Ÿ“˜

The iOS Contextual Navigation Toolbar can be enabled and disabled dynamically from your website using the Median Javascript Bridge.

When enabled: true the toolbar will be displayed if one of the following conditions are satisfied:

  • the webview has back history
  • the forward button is enabled in the configuration and the webview has forward history
  • the refresh button is enabled in configuration

When enabled: false the toolbar will be hidden regardless of any other condition

โ†”๏ธMedian JavaScript Bridge

// Show the contextual navigation toolbar, if conditions are met
median.ios.contextualNavToolbar.set({"enabled":true});
// Hide the contextual navigation toolbar
median.ios.contextualNavToolbar.set({"enabled":false});