Builder responsible for rendering and configuring the menu title element.
Handles title instantiation, text configuration, alignment, and gap application.
Inheritance
UnityMenuTitleBuilder
Assembly: Serenity.UnityMenu.Infrastructure.dll
public class UnityMenuTitleBuilder
Constructors
UnityMenuTitleBuilder(IFoundationViewElementFactory, IUiService, ILogService)
Declaration
public UnityMenuTitleBuilder(IFoundationViewElementFactory foundationViewElementFactory, IUiService uiService, ILogService logService)
Parameters
Methods
ApplyOptionsGap(IMenuSettingsDefinition, UnityMenuView, bool)
If there's a title, applies the TitleGap separation between title and content.
For BOTTOM positions: moves the title UP to prevent content from extending below the margin.
Declaration
public void ApplyOptionsGap(IMenuSettingsDefinition settings, UnityMenuView view, bool hasTitle)
Parameters
RenderTitle(IMenuSettingsDefinition, IUiThemeDefinition, UnityMenuView, Transform)
Renders title if not empty. Activates/Deactivates the title GameObject,
writes the text, and aligns the title according to the menu's UiAnchorType.
Declaration
public bool RenderTitle(IMenuSettingsDefinition settings, IUiThemeDefinition theme, UnityMenuView view, Transform parent)
Parameters
Returns