Class TableVisualizationViewModel
View model for a table visualization for recommendations.
Inherited Members
Namespace: Phoenix.Polaris.Visualizations
Assembly: Phoenix.Plugin.Polaris.dll
Syntax
public class TableVisualizationViewModel : VisualizationViewModel
Constructors
View SourceTableVisualizationViewModel(String, String, DataTable, Boolean, RecommendationViewModel)
Initializes a new instance of the TableVisualizationViewModel class.
Declaration
public TableVisualizationViewModel(string id, string name, DataTable data, bool sortingEnabled = true, RecommendationViewModel parent = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The id for this visual. |
System.String | name | The name of the visual. |
System.Data.DataTable | data | The data associated with this visual. |
System.Boolean | sortingEnabled | Whether this table is allowed to be sorted. |
RecommendationViewModel | parent | The parent recommendation of this visual. |
Properties
View SourceData
Gets or sets the data for this table.
Declaration
public DataTable Data { get; set; }
Property Value
Type | Description |
---|---|
System.Data.DataTable |
HyperlinkColumns
Gets the column indexes that are considered links.
Declaration
public List<int> HyperlinkColumns { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Int32> |
MaxHeight
Gets or sets the table's height.
Declaration
public double MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
SortingEnabled
Gets a value indicating whether this table has sorting enabled
Declaration
public bool SortingEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceUpdateData(DataTable)
Update the data for the table.
Declaration
public override void UpdateData(DataTable data)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataTable | data | The data as a DataTable. |