Skip to content

Commit

Permalink
added UserCaption
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlagunas committed Jul 28, 2023
1 parent 0049bfd commit 27a8779
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Reveal.Sdk.Dom/Visualizations/Primitives/FieldBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,32 @@ namespace Reveal.Sdk.Dom.Visualizations
public abstract class FieldBase<TFilter> : IField, IFieldDataType
where TFilter : IFilter
{
private string _fieldLabel;

protected FieldBase(string fieldName)
{
FieldName = fieldName;
FieldLabel = fieldName;
}



/// <inheritdoc />
public string FieldName { get; set; }

/// <inheritdoc />
public string FieldLabel { get; set; }
public string FieldLabel
{
get => _fieldLabel;
set
{
_fieldLabel = value;
UserCaption = value;
}
}

[JsonProperty]
internal string UserCaption { get; set; }

[JsonProperty("FieldType")]
[JsonConverter(typeof(StringEnumConverter))]
Expand Down

0 comments on commit 27a8779

Please sign in to comment.