Class RecipeMenuDto
Recipe description of a single menu. Maps to a UnityMenuSettingsDefinition asset.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public class RecipeMenuDto
Constructors
RecipeMenuDto()
Declaration
public RecipeMenuDto()
Fields
direction
Declaration
public string direction
Field Value
| Type | Description |
|---|---|
| string | Layout axis, as a |
horizontalOptionWidth
Declaration
public float horizontalOptionWidth
Field Value
| Type | Description |
|---|---|
| float | Explicit option width used when the width mode is |
horizontalOptionWidthMode
Declaration
public string horizontalOptionWidthMode
Field Value
| Type | Description |
|---|---|
| string | Horizontal column sizing, as a |
id
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string | Stable logical identifier (becomes the asset's |
isTranslatingTitle
Declaration
public bool isTranslatingTitle
Field Value
| Type | Description |
|---|---|
| bool | Whether the title is treated as a localization key. |
onCancel
Declaration
public RecipeSignalDto[] onCancel
Field Value
| Type | Description |
|---|---|
| RecipeSignalDto[] | Signals fired when cancel is not consumed by the selected option (maps to |
onHide
Declaration
public RecipeSignalDto[] onHide
Field Value
| Type | Description |
|---|---|
| RecipeSignalDto[] | Signals fired when the menu is hidden (maps to |
onShow
Declaration
public RecipeSignalDto[] onShow
Field Value
| Type | Description |
|---|---|
| RecipeSignalDto[] | Signals fired when the menu is shown (maps to |
onSubmit
Declaration
public RecipeSignalDto onSubmit
Field Value
| Type | Description |
|---|---|
| RecipeSignalDto | Single signal dispatched when a menu option is submitted (maps to |
optionAlignment
Declaration
public string optionAlignment
Field Value
| Type | Description |
|---|---|
| string | Option alignment, as a |
options
Declaration
public RecipeUiOptionDto[] options
Field Value
| Type | Description |
|---|---|
| RecipeUiOptionDto[] | Menu options, built as |
optionsGap
Declaration
public float optionsGap
Field Value
| Type | Description |
|---|---|
| float | Gap between options. |
output
Declaration
public string output
Field Value
| Type | Description |
|---|---|
| string | Output path relative to |
scrollAxis
Declaration
public string scrollAxis
Field Value
| Type | Description |
|---|---|
| string | Scroll axis, as a |
scrollable
Declaration
public bool scrollable
Field Value
| Type | Description |
|---|---|
| bool | Whether overflowing content scrolls. |
title
Declaration
public string title
Field Value
| Type | Description |
|---|---|
| string | Menu title text. |
titleGap
Declaration
public float titleGap
Field Value
| Type | Description |
|---|---|
| float | Gap between the title and the options. |
viewAlignment
Declaration
public string viewAlignment
Field Value
| Type | Description |
|---|---|
| string | View anchor, as a |
visibleOptionsCount
Declaration
public int visibleOptionsCount
Field Value
| Type | Description |
|---|---|
| int | Number of options visible before scrolling clamps; 0 disables clamping. |