Skip to content

Commit ca4aed9

Browse files
authored
Merge pull request #749 from IgniteUI/dpetev/bool-number-enums
refactor: property values as actual boolean & number, enum casing
2 parents 84e91aa + 7a673ed commit ca4aed9

File tree

307 files changed

+4748
-4748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+4748
-4748
lines changed

samples/grids/grid/action-strip/src/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ export default class Sample extends React.Component<any, any> {
5555

5656
<div className="container fill">
5757
<IgrGrid
58-
autoGenerate="false"
58+
autoGenerate={false}
5959
ref={this.gridRef}
6060
data={this.nwindData}
61-
rowEditable="true"
62-
allowFiltering="true"
61+
rowEditable={true}
62+
allowFiltering={true}
6363
pinning={this.pinningConfig1}
6464
primaryKey="ProductID">
6565
<IgrActionStrip
@@ -68,9 +68,9 @@ export default class Sample extends React.Component<any, any> {
6868
>
6969
</IgrGridPinningActions>
7070
<IgrGridEditingActions
71-
editRow="true"
72-
deleteRow="true"
73-
addRow="true">
71+
editRow={true}
72+
deleteRow={true}
73+
addRow={true}>
7474
</IgrGridEditingActions>
7575
</IgrActionStrip>
7676
<IgrColumn

samples/grids/grid/advanced-filtering-options/src/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export default class Sample extends React.Component<any, any> {
3636

3737
<div className="container fill">
3838
<IgrGrid
39-
autoGenerate="false"
39+
autoGenerate={false}
4040
ref={this.gridRef}
4141
data={this.nwindData}
42-
moving="true"
43-
allowAdvancedFiltering="true">
42+
moving={true}
43+
allowAdvancedFiltering={true}>
4444
<IgrGridToolbar
4545
>
4646
<IgrGridToolbarActions
@@ -59,31 +59,31 @@ export default class Sample extends React.Component<any, any> {
5959
<IgrColumn
6060
field="ProductName"
6161
header="Product Name"
62-
sortable="true">
62+
sortable={true}>
6363
</IgrColumn>
6464
<IgrColumn
6565
field="QuantityPerUnit"
6666
header="Quantity Per Unit"
67-
sortable="true">
67+
sortable={true}>
6868
</IgrColumn>
6969
<IgrColumn
7070
field="UnitPrice"
7171
header="Unit Price"
72-
sortable="true"
73-
dataType="Currency">
72+
sortable={true}
73+
dataType="currency">
7474
</IgrColumn>
7575
<IgrColumn
7676
field="OrderDate"
7777
header="Order Date"
78-
dataType="Date"
79-
sortable="true">
78+
dataType="date"
79+
sortable={true}>
8080
</IgrColumn>
8181
<IgrColumn
8282
field="Discontinued"
8383
header="Discontinued"
84-
dataType="Boolean"
84+
dataType="boolean"
8585
bodyTemplate={this.webGridDiscontinuedCellTemplate}
86-
sortable="true"
86+
sortable={true}
8787
name="column1">
8888
</IgrColumn>
8989
</IgrGrid>

samples/grids/grid/advanced-filtering-style/src/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export default class Sample extends React.Component<any, any> {
3636

3737
<div className="container fill">
3838
<IgrGrid
39-
autoGenerate="false"
39+
autoGenerate={false}
4040
ref={this.gridRef}
4141
id="grid"
4242
data={this.nwindData}
43-
moving="true"
44-
allowAdvancedFiltering="true">
43+
moving={true}
44+
allowAdvancedFiltering={true}>
4545
<IgrGridToolbar
4646
>
4747
<IgrGridToolbarActions
@@ -54,31 +54,31 @@ export default class Sample extends React.Component<any, any> {
5454
<IgrColumn
5555
field="ProductName"
5656
header="Product Name"
57-
sortable="true">
57+
sortable={true}>
5858
</IgrColumn>
5959
<IgrColumn
6060
field="QuantityPerUnit"
6161
header="Quantity Per Unit"
62-
sortable="true">
62+
sortable={true}>
6363
</IgrColumn>
6464
<IgrColumn
6565
field="UnitPrice"
6666
header="Unit Price"
67-
sortable="true"
68-
dataType="Currency">
67+
sortable={true}
68+
dataType="currency">
6969
</IgrColumn>
7070
<IgrColumn
7171
field="OrderDate"
7272
header="Order Date"
73-
dataType="Date"
74-
sortable="true">
73+
dataType="date"
74+
sortable={true}>
7575
</IgrColumn>
7676
<IgrColumn
7777
field="Discontinued"
7878
header="Discontinued"
79-
dataType="Boolean"
79+
dataType="boolean"
8080
bodyTemplate={this.webGridDiscontinuedCellTemplate}
81-
sortable="true"
81+
sortable={true}
8282
name="column1">
8383
</IgrColumn>
8484
</IgrGrid>

samples/grids/grid/binding-composite-data/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class Sample extends React.Component<any, any> {
3939

4040
<div className="container fill">
4141
<IgrGrid
42-
autoGenerate="false"
42+
autoGenerate={false}
4343
data={this.customersData}
4444
primaryKey="ID"
4545
ref={this.gridRef}>
@@ -50,21 +50,21 @@ export default class Sample extends React.Component<any, any> {
5050
<IgrColumn
5151
field="ContactName"
5252
header="Contact"
53-
editable="true"
53+
editable={true}
5454
bodyTemplate={this.webGridCompositeContactCellTemplate}
5555
inlineEditorTemplate={this.webGridCompositeContactEditCellTemplate}
5656
width="250px"
57-
resizable="false"
57+
resizable={false}
5858
name="column1">
5959
</IgrColumn>
6060
<IgrColumn
6161
header="Address"
6262
field="Address"
63-
editable="true"
63+
editable={true}
6464
bodyTemplate={this.webGridCompositeAddressCellTemplate}
6565
inlineEditorTemplate={this.webGridCompositeAddressEditCellTemplate}
6666
width="250px"
67-
resizable="false"
67+
resizable={false}
6868
name="column2">
6969
</IgrColumn>
7070
<IgrColumn

samples/grids/grid/binding-crud-data/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export default class Sample extends React.Component<any, any> {
4141

4242
<div className="container fill">
4343
<IgrGrid
44-
autoGenerate="false"
44+
autoGenerate={false}
4545
ref={this.gridRef}
4646
data={this.nwindData}
47-
moving="true"
47+
moving={true}
4848
primaryKey="ProductID"
49-
isLoading="true"
50-
allowFiltering="false"
49+
isLoading={true}
50+
allowFiltering={false}
5151
pagingMode="Remote"
52-
rowEditable="true">
52+
rowEditable={true}>
5353
<IgrColumn
5454
name="ProductName"
5555
field="ProductName"

samples/grids/grid/binding-nested-data-1/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class Sample extends React.Component<any, any> {
3838

3939
<div className="container fill">
4040
<IgrGrid
41-
autoGenerate="false"
41+
autoGenerate={false}
4242
data={this.employeesNestedData}
4343
ref={this.gridRef}
4444
id="grid">
@@ -82,7 +82,7 @@ export default class Sample extends React.Component<any, any> {
8282
<IgrColumn
8383
field="HireDate"
8484
header="Hire Date"
85-
dataType="Date">
85+
dataType="date">
8686
</IgrColumn>
8787
</IgrGrid>
8888
</div>

samples/grids/grid/cascading-combo/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export default class Sample extends React.Component<any, any> {
4141

4242
<div className="container fill">
4343
<IgrGrid
44-
autoGenerate="false"
44+
autoGenerate={false}
4545
data={this.worldCitiesAbove500K}
4646
primaryKey="ID"
4747
ref={this.gridRef}
4848
rendered={this.webGridWithComboRendered}>
4949
<IgrColumn
5050
field="ID"
5151
header="ID"
52-
dataType="Number">
52+
dataType="number">
5353
</IgrColumn>
5454
<IgrColumn
5555
field="Country"
@@ -164,7 +164,7 @@ export default class Sample extends React.Component<any, any> {
164164
const comboId = "country" + id;
165165
return (
166166
<>
167-
<IgrCombo data={this.countries} ref={(this as any).comboRefs} change={(x: any, args: any) => { (this as any).onCountryChange(id, x, args) }} placeholder="Choose Country..." valueKey="Country" displayKey="Country" singleSelect="true" name={comboId}></IgrCombo>
167+
<IgrCombo data={this.countries} ref={(this as any).comboRefs} change={(x: any, args: any) => { (this as any).onCountryChange(id, x, args) }} placeholder="Choose Country..." valueKey="Country" displayKey="Country" singleSelect={true} name={comboId}></IgrCombo>
168168
</>
169169
);
170170
}
@@ -180,7 +180,7 @@ export default class Sample extends React.Component<any, any> {
180180
return (
181181
<>
182182
<div style={{display: "flex", flexDirection: "column"}}>
183-
<IgrCombo ref={(this as any).comboRefs} change={(x: any, args: any) => { (this as any).onRegionChange(id, x, args) }} placeholder="Choose Region..." disabled="true" valueKey="Region" displayKey="Region" singleSelect="true" name={comboId}>
183+
<IgrCombo ref={(this as any).comboRefs} change={(x: any, args: any) => { (this as any).onRegionChange(id, x, args) }} placeholder="Choose Region..." disabled={true} valueKey="Region" displayKey="Region" singleSelect={true} name={comboId}>
184184
</IgrCombo>
185185
</div>
186186
</>
@@ -198,7 +198,7 @@ export default class Sample extends React.Component<any, any> {
198198
return (
199199
<>
200200
<div style={{display: "flex", flexDirection: "column"}}>
201-
<IgrCombo ref={(this as any).comboRefs} placeholder="Choose City..." disabled="true" valueKey="Name" displayKey="Name" name={comboId} singleSelect="true">
201+
<IgrCombo ref={(this as any).comboRefs} placeholder="Choose City..." disabled={true} valueKey="Name" displayKey="Name" name={comboId} singleSelect={true}>
202202
</IgrCombo>
203203
</div>
204204
</>

samples/grids/grid/cell-editing-sample/src/index.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,43 +41,43 @@ export default class Sample extends React.Component<any, any> {
4141

4242
<div className="container fill">
4343
<IgrGrid
44-
autoGenerate="false"
44+
autoGenerate={false}
4545
ref={this.grid1Ref}
4646
data={this.roleplayDataStats}
4747
primaryKey="Name">
4848
<IgrColumn
4949
field="Name"
5050
header="Character Name"
51-
dataType="String">
51+
dataType="string">
5252
</IgrColumn>
5353
<IgrColumn
5454
field="Race"
5555
header="Race"
56-
dataType="String"
56+
dataType="string"
5757
inlineEditorTemplate={this.webGridCellEditCellTemplate}
58-
editable="true"
58+
editable={true}
5959
name="column1">
6060
</IgrColumn>
6161
<IgrColumn
6262
field="Class"
6363
header="Class"
6464
inlineEditorTemplate={this.webGridCellEditCellTemplate}
65-
editable="true"
66-
dataType="String"
65+
editable={true}
66+
dataType="string"
6767
name="column2">
6868
</IgrColumn>
6969
<IgrColumn
7070
field="Age"
7171
header="Age"
72-
dataType="String"
73-
editable="true">
72+
dataType="string"
73+
editable={true}>
7474
</IgrColumn>
7575
<IgrColumn
7676
field="Alignment"
7777
header="Alignment"
7878
inlineEditorTemplate={this.webGridCellEditCellTemplate}
79-
editable="true"
80-
dataType="String"
79+
editable={true}
80+
dataType="string"
8181
name="column3">
8282
</IgrColumn>
8383
</IgrGrid>

samples/grids/grid/cell-editing-styling/src/index.tsx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -35,58 +35,58 @@ export default class Sample extends React.Component<any, any> {
3535

3636
<div className="container fill">
3737
<IgrGrid
38-
autoGenerate="false"
38+
autoGenerate={false}
3939
id="grid"
4040
ref={this.gridRef}
4141
data={this.nwindData}
4242
primaryKey="ProductID"
43-
allowFiltering="true">
43+
allowFiltering={true}>
4444
<IgrPaginator
45-
perPage="10">
45+
perPage={10}>
4646
</IgrPaginator>
4747
<IgrColumn
4848
field="ProductName"
4949
header="Product Name"
50-
dataType="String"
51-
sortable="true"
52-
hasSummary="true"
53-
editable="true"
54-
resizable="true">
50+
dataType="string"
51+
sortable={true}
52+
hasSummary={true}
53+
editable={true}
54+
resizable={true}>
5555
</IgrColumn>
5656
<IgrColumn
5757
field="UnitsInStock"
5858
header="Units in Stock"
59-
dataType="Number"
60-
sortable="true"
61-
hasSummary="true"
62-
editable="true"
63-
resizable="true">
59+
dataType="number"
60+
sortable={true}
61+
hasSummary={true}
62+
editable={true}
63+
resizable={true}>
6464
</IgrColumn>
6565
<IgrColumn
6666
field="OrderDate"
6767
header="Order Date"
68-
dataType="Date"
69-
sortable="true"
70-
hasSummary="true"
71-
editable="true"
72-
resizable="true">
68+
dataType="date"
69+
sortable={true}
70+
hasSummary={true}
71+
editable={true}
72+
resizable={true}>
7373
</IgrColumn>
7474
<IgrColumn
7575
field="Discontinued"
7676
header="Discontinued"
77-
dataType="Boolean"
78-
sortable="true"
79-
hasSummary="true"
80-
editable="true">
77+
dataType="boolean"
78+
sortable={true}
79+
hasSummary={true}
80+
editable={true}>
8181
</IgrColumn>
8282
<IgrColumn
8383
field="ReorderLevel"
8484
header="Reorder Level"
85-
dataType="Number"
86-
sortable="true"
87-
hasSummary="true"
88-
editable="true"
89-
filterable="false">
85+
dataType="number"
86+
sortable={true}
87+
hasSummary={true}
88+
editable={true}
89+
filterable={false}>
9090
</IgrColumn>
9191
</IgrGrid>
9292
</div>

0 commit comments

Comments
 (0)