Skip to content

Commit

Permalink
improve tile samples
Browse files Browse the repository at this point in the history
  • Loading branch information
gmurray81 committed Dec 12, 2024
1 parent 9a9d7ff commit 8644beb
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code-gen-library/DashboardTileGaugeOnInit/Blazor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class DashboardTileGaugeOnInit
//begin eventHandler
public void DashboardTileGaugeOnInit()
{
CodeGenHelper.GetDescription<IgbDashboardTile>("content").dataSource = 40;
}
//end eventHandler
}
13 changes: 13 additions & 0 deletions code-gen-library/DashboardTileGaugeOnInit/WPF.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//begin imports
using Infragistics.Controls.Dashboards;
//end imports

public class DashboardTileGaugeOnInit
{
//begin eventHandler
public void DashboardTileGaugeOnInit()
{
CodeGenHelper.GetDescription<XamDashboardTile>("content").ItemsSource = 40;
}
//end eventHandler
}
4 changes: 2 additions & 2 deletions code-gen-library/DashboardTileGaugeOnInit/Web.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//begin imports
import { IgcToolbarComponent, IgcToolActionLabelComponent, IgcToolActionComponent, IgcToolCommandEventArgs } from 'igniteui-webcomponents-layouts';
import { IgcDashboardTileComponent } from 'igniteui-webcomponents-dashboards';
//end imports

import { CodeGenHelper } from 'igniteui-webcomponents-core';
Expand All @@ -8,7 +8,7 @@ export class DashboardTileGaugeOnInit {

//begin eventHandler
public dashboardTileGaugeOnInit(): void {
CodeGenHelper.GetDescription<IgcDashboardTileComponent>("content").dataSource = 40;
}
//end eventHandler

Expand Down
6 changes: 2 additions & 4 deletions samples/charts/dashboard-tile/chart-dashboard.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"export": false,
"export": true,
"descriptions": {
"content": {
"type": "DashboardTile",
"name": "dashboard",
"dataSourceRef": "EnergyRenewableConsumption",
"includedProperties": ["location", "hydro", "solar", "wind", "other"],
"visualizationType": "ColumnChart"
"dataSourceRef": "OlympicMedalsTopCountries"
}
},
"modules": [
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/dashboard-tile/gauge-dashboard.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"export": false,
"export": true,
"onInit": ["DashboardTileGaugeOnInit"],
"descriptions": {
"content": {
"tileTitle": "Sample Gauge",
"type": "DashboardTile",
"name": "dashboard"
}
Expand Down
19 changes: 19 additions & 0 deletions samples/charts/dashboard-tile/map-dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"export": true,
"descriptions": {
"content": {
"type": "DashboardTile",
"name": "dashboard",
"tileTitle": "World Cities",
"dataSourceRef": "WorldCities"
}
},
"modules": [
"dashboards/DashboardTileModule",
"dashboards/DataChartDashboardTileModule",
"dashboards/GeographicMapDashboardTileModule",
"dashboards/LinearGaugeDashboardTileModule",
"dashboards/PieChartDashboardTileModule",
"dashboards/RadialGaugeDashboardTileModule"
]
}
2 changes: 1 addition & 1 deletion samples/charts/dashboard-tile/pie-dashboard.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"export": false,
"export": true,
"descriptions": {
"content": {
"type": "DashboardTile",
Expand Down

0 comments on commit 8644beb

Please sign in to comment.