Class LeafNode
A leaf region that hosts a single menu — either a menu the tool generates, or an existing view definition the designer assigned. A leaf flagged IsNavbar is the generated navigation menu whose options (NavTargets) switch a sibling content switcher.
Implements
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Editor.Builder
Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
Syntax
public sealed class LeafNode : IRegionNode
Constructors
LeafNode()
Declaration
public LeafNode()
Properties
Direction
The layout direction applied to the generated menu (Vertical = stacked, Horizontal = side by side).
Declaration
public MenuDirection Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| MenuDirection |
ExistingAsset
The existing view-definition asset to host (when GenerateNew is false).
Declaration
public Object ExistingAsset { get; set; }
Property Value
| Type | Description |
|---|---|
| Object |
GenerateNew
True when the tool generates a new menu asset for this leaf; false to reuse ExistingAsset.
Declaration
public bool GenerateNew { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IncludeBackOption
When true, the generated menu gets an extra "Go Back" option (transition = Menu_GoBack).
Declaration
public bool IncludeBackOption { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsNavbar
True when this leaf is the generated navigation menu driving a content switcher.
Declaration
public bool IsNavbar { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
NavTargets
For a navbar leaf, the wired switch targets (one per content View) plus an implicit Back.
Declaration
public List<NavTarget> NavTargets { get; set; }
Property Value
| Type | Description |
|---|---|
| List<NavTarget> |
Size
The main-axis size this region occupies inside its parent container.
Declaration
public LayoutSize Size { get; set; }
Property Value
| Type | Description |
|---|---|
| LayoutSize |
ViewId
The id of the view hosted here (a generated menu's id, or an existing asset's id).
Declaration
public string ViewId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |