Uses of Class
io.mindspice.simplypages.builders.TopNavBuilder
Packages that use TopNavBuilder
-
Uses of TopNavBuilder in io.mindspice.simplypages.builders
Methods in io.mindspice.simplypages.builders that return TopNavBuilderModifier and TypeMethodDescriptionDeprecated.Deprecated.TopNavBuilder.addPrimaryComponent(Component component) Adds a custom primary component.TopNavBuilder.addPrimaryDropdown(String triggerText, Consumer<Dropdown> dropdownConfig) Adds a primary dropdown (left-aligned menu).TopNavBuilder.addPrimaryLink(String text, String href) Adds a non-active primary link with an application-controlled or separately validated navigation/HTMX destination.TopNavBuilder.addPrimaryLink(String text, String href, boolean active) Adds a primary link with explicit active state and a trusted/context-validated href.TopNavBuilder.addUtilityComponent(Component component) Adds a custom utility component.TopNavBuilder.addUtilityDropdown(String triggerText, Consumer<Dropdown> dropdownConfig) Adds a utility dropdown (right-aligned menu).TopNavBuilder.addUtilityLink(String text, String href) Adds a utility link with an application-controlled or separately navigation/endpoint-validated href, without Link's scheme policy.TopNavBuilder.addUtilityLink(String text, String href, boolean active) Adds a utility link with explicit active state and a trusted/context-validated href.static TopNavBuilderTopNavBuilder.create()Creates a new builder instance.TopNavBuilder.withAccountWidget(Component widget) Adds a custom account widget component to the utility region.TopNavBuilder.withAuthenticatedAccountWidget(String username) Adds an authenticated account widget to the utility region.Sets optional navigation brand text.Adds a custom class to the rendered top-nav container.TopNavBuilder.withContentTarget(String target) Sets the HTMX target used for generated links.TopNavBuilder.withDynamicAccountWidget(String endpoint) Adds an HTMX-loaded account widget using an application-controlled or separately endpoint-validated URL.TopNavBuilder.withGuestAccountWidget()Adds a guest account widget to the utility region.TopNavBuilder.withHtmxNavigation(boolean enabled) Enables or disables HTMX navigation attributes for generated links.