Skip to content

Commit

Permalink
Add some docs to explain the breadcrumb/nav behavior (inductiveautoma…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstofan authored and kevinherron committed Jul 24, 2019
1 parent b670c1d commit 993c3cc
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.inductiveautomation.ignition.gateway.model.AbstractGatewayModuleHook;
import com.inductiveautomation.ignition.gateway.model.GatewayContext;
import com.inductiveautomation.ignition.gateway.web.components.AbstractNamedTab;
import com.inductiveautomation.ignition.gateway.web.components.ConfigPanel;
import com.inductiveautomation.ignition.gateway.web.models.ConfigCategory;
import com.inductiveautomation.ignition.gateway.web.models.DefaultConfigTab;
import com.inductiveautomation.ignition.gateway.web.models.IConfigTab;
Expand Down Expand Up @@ -82,6 +83,12 @@ public List<ConfigCategory> getConfigCategories() {
return Collections.singletonList(CONFIG_CATEGORY);
}

/**
* An IConfigTab contains all the info necessary to create a link to your config page on the gateway nav menu.
* In order to make sure the breadcrumb and navigation works properly, the 'name' field should line up
* with the right-hand value returned from {@link ConfigPanel#getMenuLocation}. In this case name("homeconnect")
* lines up with HCSettingsPage#getMenuLocation().getRight()
*/
public static final IConfigTab HCE_CONFIG_ENTRY = DefaultConfigTab.builder()
.category(CONFIG_CATEGORY)
.name("homeconnect")
Expand Down

0 comments on commit 993c3cc

Please sign in to comment.