Class UnitySerializedComponentData
Namespace: Serenity.Ui.InterfaceAdapters.Entities
Assembly: Serenity.UnityUi.InterfaceAdapters.dll
Syntax
public class UnitySerializedComponentData : SerializedComponentData
Constructors
UnitySerializedComponentData()
Initializes a new instance with default values.
Declaration
public UnitySerializedComponentData()
UnitySerializedComponentData(string, string, string, int, UiComponentAlignmentType, bool, bool, IEnumerable<EventDispatcherSignal>)
Initializes a new Unity serialized component data with specified properties.
Declaration
public UnitySerializedComponentData(string id, string guid, string label, int index, UiComponentAlignmentType alignment, bool isTranslatingLabel, bool isTranslatingValue, IEnumerable<EventDispatcherSignal> onSubmitSignals = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The unique identifier for the component. |
| string | guid | The global unique identifier for the component. |
| string | label | The display label for the component. |
| int | index | The index position of the component. |
| UiComponentAlignmentType | alignment | The alignment type for the component. |
| bool | isTranslatingLabel | |
| bool | isTranslatingValue | |
| IEnumerable<EventDispatcherSignal> | onSubmitSignals | Optional collection of event signals to trigger on submit. |
Properties
OnSubmitSignals
Gets the read-only list of event signals that should be triggered on component submission.
Declaration
public override IReadOnlyList<EventDispatcherSignal> OnSubmitSignals { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<EventDispatcherSignal> | The list of event signals to trigger on submit. |
Methods
ReplaceSignals(IEnumerable<EventDispatcherSignal>)
Replaces the current event signals with a new collection of signals.
Declaration
protected override void ReplaceSignals(IEnumerable<EventDispatcherSignal> signals)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<EventDispatcherSignal> | signals | The new collection of event signals to use, or null to clear all signals. |