Struct MenuTransitionTargetCandidate
One entry the TRANSITION Value dropdown can offer: the Value a picked entry writes into
the option's Value.Value (the id runtime resolves), the Key it writes into
Value.Guid, and the DisplayLabel the popup shows.
Inherited Members
Namespace: Serenity.Menu.Infrastructure.Settings.Editor
Assembly: Serenity.UnityMenu.Infrastructure.Editor.dll
Syntax
public readonly struct MenuTransitionTargetCandidate
Remarks
Key is the asset guid for anything addressed by guid (an on-disk menu, a draft of the current wizard run) and equals Value for everything that IS its own key — the go-back sentinel, a composite "::" child path, a composite view id, a cascade view id. That is exactly the contract the dropdown's own write already had: it stores an empty guid whenever key and value match.
Fields
DisplayLabel
What the popup shows for this entry, already safe for a Unity popup.
Declaration
public readonly string DisplayLabel
Field Value
| Type | Description |
|---|---|
| string |
Key
What the option's Value.Guid stores; equal to Value when the target
is its own key.
Declaration
public readonly string Key
Field Value
| Type | Description |
|---|---|
| string |
Value
What the option's Value.Value stores — the id runtime resolves.
Declaration
public readonly string Value
Field Value
| Type | Description |
|---|---|
| string |
Methods
Labeled(string, string, string)
A target addressed by guid, shown under a label of its own.
Declaration
public static MenuTransitionTargetCandidate Labeled(string key, string value, string displayLabel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The asset guid stored in |
| string | value | The target id stored in |
| string | displayLabel | What the popup shows. |
Returns
| Type | Description |
|---|---|
| MenuTransitionTargetCandidate | The candidate. |
Plain(string)
A target that is its own key and its own label — the go-back sentinel, a composite "::" path, a composite or cascade view id.
Declaration
public static MenuTransitionTargetCandidate Plain(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The target id. |
Returns
| Type | Description |
|---|---|
| MenuTransitionTargetCandidate | The candidate. |