Skip to content

Commit

Permalink
Merge pull request #65 from RevealBi/text-view-change-spec-type
Browse files Browse the repository at this point in the history
Updated TextViewVisualization DataSpec type
  • Loading branch information
brianlagunas authored Sep 26, 2024
2 parents 2d7fa8c + 806e420 commit c2be041
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/Reveal.Sdk.Dom/Visualizations/TextViewVisualization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,22 @@ public TextViewVisualization(DataSourceItem dataSourceItem) : this(null, dataSou
public TextViewVisualization(string title, DataSourceItem dataSourceItem) : base(title, dataSourceItem) { ChartType = ChartType.TextView; }

[JsonProperty(Order = 7)]
GridVisualizationDataSpec VisualizationDataSpec { get; set; } = new GridVisualizationDataSpec();
VisualizationDataSpec VisualizationDataSpec { get; set; } = new GridVisualizationDataSpec();

[JsonIgnore]
public List<TabularColumn> Columns { get { return VisualizationDataSpec.Columns; } }
public List<TabularColumn> Columns
{
get
{
if (VisualizationDataSpec is GridVisualizationDataSpec gds)
{
return gds.Columns;
}
else
{
return new List<TabularColumn>();
}
}
}
}
}

0 comments on commit c2be041

Please sign in to comment.