Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

39.10.2. application Launcher

顶部导航栏还包含链接到其他 Web 应用程序的可选应用程序启动程序。默认情况下,此下拉菜单为空,但是当添加链接时,masthead 中的帮助菜单左侧会出现。

// Add items to the application launcher dropdown menu.
window.OPENSHIFT_CONSTANTS.APP_LAUNCHER_NAVIGATION = [{
  title: "Dashboard",                    // The text label
  iconClass: "fa fa-dashboard",          // The icon you want to appear
  href: "http://example.com/dashboard",  // Where to go when this item is clicked
  tooltip: 'View dashboard'              // Optional tooltip to display on hover
}, {
  title: "Manage Account",
  iconClass: "pficon pficon-user",
  href: "http://example.com/account",
  tooltip: "Update email address or password."
}];

添加脚本,如 Loading Extension Scripts 和 Stylesheets 所述。