Class MatrixFieldCellData
- Namespace
- Dynamicweb.Ecommerce.Products.Categories
- Assembly
- Dynamicweb.Ecommerce.dll
Represents one cell value within a MatrixFieldRowData row.
public sealed record MatrixFieldCellData : IEquatable<MatrixFieldCellData>
- Inheritance
-
MatrixFieldCellData
- Implements
- Inherited Members
Constructors
MatrixFieldCellData(string, string?, string?)
Represents one cell value within a MatrixFieldRowData row.
public MatrixFieldCellData(string FieldId, string? Value, string? InheritedValue)
Parameters
FieldIdstringThe column the cell belongs to.
ValuestringThe posted value, or null when the cell was cleared.
InheritedValuestringWhat the editor was showing as this cell's fallback when the value was posted, or null when it had nothing to fall back to. The save compares
Valuewith this rather than with what the cell resolves to now, because the two can differ within one request: a multi-language screen submits one form per language in order, so by the time a translation is saved the default language may already hold its new value, and the value the editor actually showed would read as an edit. A caller that builds this type itself rather than posting from the editor passes null, and its values are written as given.
Properties
FieldId
The column the cell belongs to.
public string FieldId { get; init; }
Property Value
InheritedValue
What the editor was showing as this cell's fallback when the value was posted, or null
when it had nothing to fall back to. The save compares Value with this rather than with
what the cell resolves to now, because the two can differ within one request: a multi-language screen
submits one form per language in order, so by the time a translation is saved the default language may
already hold its new value, and the value the editor actually showed would read as an edit. A caller that
builds this type itself rather than posting from the editor passes null, and its values
are written as given.
public string? InheritedValue { get; init; }
Property Value
Value
The posted value, or null when the cell was cleared.
public string? Value { get; init; }