Skip to content

Commit 93d132f

Browse files
committed
fix: update react templates
1 parent dfaf43a commit 93d132f

File tree

8 files changed

+10
-51
lines changed

8 files changed

+10
-51
lines changed

packages/cli/templates/react/igr-es6/grid/basic/files/src/views/__path__/index.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,11 @@ export default class $(ClassName) extends Component {
2222
<h1 className={style.title}>{this.title}</h1>
2323
<div>
2424
Read more on the&nbsp;
25-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grid.html">
25+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid.html">
2626
official documentation page
2727
</a>
2828
</div>
2929
<div className={style.container}>
30-
<div className={style.grid}>
31-
<IgrDataGrid
32-
height="100%"
33-
autoGenerateColumns="false"
34-
dataSource={this.data}>
35-
<IgrNumericColumn field="ProductID" headerText="Product ID" />
36-
<IgrTextColumn field="ProductName" headerText="Product Name" />
37-
<IgrTextColumn field="QuantityPerUnit" headerText="Quantity Per Unit" />
38-
<IgrNumericColumn field="UnitsInStock" headerText="Units In Stock" />
39-
<IgrDateTimeColumn field="OrderDate" headerText="Order Date" />
40-
</IgrDataGrid>
41-
</div>
4230
<div className={style.grid}>
4331
<IgrDataGrid
4432
height="100%"
@@ -50,4 +38,4 @@ export default class $(ClassName) extends Component {
5038
</div>
5139
)
5240
}
53-
}
41+
}

packages/cli/templates/react/igr-es6/grid/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IgrDataGridComponent extends BaseComponent {
77
constructor() {
88
super(__dirname);
99
this.name = "Data Grid";
10-
this.group = "Grids & Lists";
10+
this.group = "Grids";
1111
this.description = "pick from grids: basic, sorting, templating.";
1212
}
1313
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Gauges": "scale measure Controls including Linear and Radial Gauge and Bullet Graph.",
33
"Charts": "high-performance data visualization for category and financial data.",
4-
"Grids & Lists": "bind and display data sets with little coding or configuration."
5-
}
4+
"Grids": "bind and display data sets with little coding or configuration."
5+
}

packages/cli/templates/react/igr-es6/pie-chart/default/files/src/views/__path__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class $(ClassName) extends Component {
5858
<h1 className={style.title}>{this.title}</h1>
5959
<div>
6060
Read more on the&nbsp;
61-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/piechart.html">
61+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/pie-chart.html">
6262
official documentation page
6363
</a>
6464
</div>

packages/cli/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.tsx

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,11 @@ export default function $(ClassName)() {
1515
<h1 className={style.title}>{title}</h1>
1616
<div>
1717
Read more on the&nbsp;
18-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grid.html">
18+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid.html">
1919
official documentation page
2020
</a>
2121
</div>
2222
<div className={style.container}>
23-
<div className={style.grid}>
24-
<IgrGrid autoGenerate={false} data={data}>
25-
<IgrColumn
26-
field="ProductID"
27-
header="Product ID"
28-
dataType="number">
29-
</IgrColumn>
30-
<IgrColumn
31-
field="ProductName"
32-
header="Product Name"
33-
dataType="string">
34-
</IgrColumn>
35-
<IgrColumn
36-
field="QuantityPerUnit"
37-
header="Quantity Per Unit"
38-
dataType="string">
39-
</IgrColumn>
40-
<IgrColumn
41-
field="UnitsInStock"
42-
header="Units In Stock"
43-
dataType="number">
44-
</IgrColumn>
45-
<IgrColumn
46-
field="OrderDate"
47-
header="Order Date"
48-
dataType="date">
49-
</IgrColumn>
50-
</IgrGrid>
51-
</div>
5223
<div className={style.grid}>
5324
<IgrGrid autoGenerate={true} data={data} />
5425
</div>

packages/cli/templates/react/igr-ts/grid/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IgrTsDataGridComponent extends BaseComponent {
77
constructor() {
88
super(__dirname);
99
this.name = "Data Grid";
10-
this.group = "Grids & Lists";
10+
this.group = "Grids";
1111
this.description = "pick from grids: basic, sorting, templating.";
1212
}
1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Gauges": "scale measure Controls including Linear and Radial Gauge and Bullet Graph.",
33
"Charts": "high-performance data visualization for category and financial data.",
4-
"Grids & Lists": "bind and display data sets with little coding or configuration."
4+
"Grids": "bind and display data sets with little coding or configuration."
55
}

packages/cli/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function $(ClassName)() {
3131
<h1 className={style.title}>{title}</h1>
3232
<div>
3333
Read more on the&nbsp;
34-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/piechart.html">
34+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/pie-chart.html">
3535
official documentation page
3636
</a>
3737
</div>

0 commit comments

Comments
 (0)