Class RecipeUiOptionDto
Recipe description of a single UI option shared by menus and modals. Maps to a UiOption.
Covers the flat fields (label, value/interaction type, a simple string default, translation flags) and the
option's submit signals (submitSignals), wired through the serialized-property codec.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public class RecipeUiOptionDto
Constructors
RecipeUiOptionDto()
Declaration
public RecipeUiOptionDto()
Fields
binding
Declaration
public RecipeUiOptionValueDto binding
Field Value
| Type | Description |
|---|---|
| RecipeUiOptionValueDto | The option's bound value ( |
defaultBinding
Declaration
public RecipeUiOptionValueDto defaultBinding
Field Value
| Type | Description |
|---|---|
| RecipeUiOptionValueDto | The option's default value ( |
defaultValue
Declaration
public string defaultValue
Field Value
| Type | Description |
|---|---|
| string | Hand-authoring shortcut: a plain default value. On a new option it seeds both the bound value and the default; on an existing option it sets only the default's value. Ignored when defaultBinding is described; the exporter writes the bindings instead and leaves this empty. |
guid
Declaration
public string guid
Field Value
| Type | Description |
|---|---|
| string | The option's own Guid, the identity an import matches it by; empty matches by id. |
id
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string | Stable logical identifier of the option. Required. |
interactionType
Declaration
public string interactionType
Field Value
| Type | Description |
|---|---|
| string | Interaction type, as a |
isTranslatingLabel
Declaration
public bool isTranslatingLabel
Field Value
| Type | Description |
|---|---|
| bool | Whether the label is treated as a localization key at runtime. |
isTranslatingValue
Declaration
public bool isTranslatingValue
Field Value
| Type | Description |
|---|---|
| bool | Whether the value is treated as a localization key at runtime. |
label
Declaration
public string label
Field Value
| Type | Description |
|---|---|
| string | Display label of the option. |
submitSignals
Declaration
public RecipeSignalDto[] submitSignals
Field Value
| Type | Description |
|---|---|
| RecipeSignalDto[] | Signals dispatched when the option is submitted, in order (maps to |
valueType
Declaration
public string valueType
Field Value
| Type | Description |
|---|---|
| string | Value type, as a |