Custom Views
You can also add your own pages to the HopFrame UI by defining the routes as custom views. You can do that by using the following extension methods for the HopFrameConfig:
Configuration methods
AddCustomView (With configurator delegate)
Creates an entry to the side menu and dashboard with a custom URL.
Parameters:
configurator
: The configurator for the HopFrame config that is being created.name
: The name of the navigation entry.url
: The target URL of the navigation entry.configuratorDelegate
: The delegate for configuring the view.
Returns:
HopFrameConfigurator
AddCustomView (Without configurator delegate)
Creates an entry to the side menu and dashboard with a custom URL.
Parameters:
configurator
: The configurator for the HopFrame config that is being created.name
: The name of the navigation entry.url
: The target URL of the navigation entry.
Returns:
CustomViewConfigurator
CustomViewConfigurator
SetDescription
Sets the description displayed in the dashboard.
Parameters:
description
: The desired description.
Returns:
CustomViewConfigurator
SetPolicy
Sets the policy needed in order to access the view.
Parameters:
policy
: The desired policy.
Returns:
CustomViewConfigurator
SetIcon
Sets the icon displayed in the sidebar.
Parameters:
icon
: The desired fluent-icon.
Returns:
CustomViewConfigurator
SetLinkMatch
Sets the rule for the sidebar to determine if the link is active.
Parameters:
match
: The desired match rule.
Returns:
CustomViewConfigurator