Class RecipeUiOptionValueDto
Recipe description of one UiOptionValue — an option's bound value or its default: the value itself
plus the binding identity (the action, setting or view it names by id and Guid) and the view it belongs to.
Carried whole so an option's binding round-trips exactly instead of collapsing to a bare string.
Inherited Members
Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
Syntax
public class RecipeUiOptionValueDto
Constructors
RecipeUiOptionValueDto()
Declaration
public RecipeUiOptionValueDto()
Fields
guid
Declaration
public string guid
Field Value
| Type | Description |
|---|---|
| string | The Guid of the binding the value names. |
id
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string | The id of the binding the value names. |
uiElement
Declaration
public string uiElement
Field Value
| Type | Description |
|---|---|
| string | The value's UI element, as a |
value
Declaration
public string value
Field Value
| Type | Description |
|---|---|
| string | The value (an action id, a view id, a setting value). |
viewId
Declaration
public string viewId
Field Value
| Type | Description |
|---|---|
| string | The view the value belongs to. |
Methods
IsDescribed()
True when the recipe actually describes this value. A recipe written before bindings were exported has none, and its parser still hands back an empty instance, which must leave the option's binding alone.
Declaration
public bool IsDescribed()
Returns
| Type | Description |
|---|---|
| bool |