You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/Common/First Steps/00 First Steps.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
##### Angular
3
3
4
-
[important] You should be familiar with basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://angular.dev/overview" target="_blank">{Framework} documentation</a> to follow its getting-started tutorial first.
4
+
[note] You should be familiar with the basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://angular.dev/overview" target="_blank">{Framework} documentation</a> and follow the getting-started tutorial first.
5
5
6
6
##### Vue
7
7
8
-
[important] You should be familiar with basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://vuejs.org/guide/introduction.html#getting-started" target="_blank">{Framework} documentation</a> to follow its getting-started tutorial first.
8
+
[note] You should be familiar with the basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://vuejs.org/guide/introduction.html#getting-started" target="_blank">{Framework} documentation</a> and follow the getting-started tutorial first.
9
9
10
10
##### React
11
11
12
-
[important] You should be familiar with basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://react.dev/learn" target="_blank">{Framework} documentation</a> to follow its getting-started tutorial first.
12
+
[note] You should be familiar with the basic concepts and patterns of {Framework} to use DevExtreme components. If you are not, refer to the <a href="https://react.dev/learn" target="_blank">{Framework} documentation</a> and follow the getting-started tutorial first.
First, create an empty web application. Then add jQuery and DevExtreme source files to the `<head>`:
4
+
Create an empty web application. Then add jQuery and DevExtreme source files to the `<head>`:
5
5
6
6
<!-- tab: index.html -->
7
7
<head>
@@ -13,32 +13,45 @@ For complete installation instructions, refer to the following help topic: [Add
13
13
14
14
##### Angular
15
15
16
-
First, create an empty Angular application (see [Angular Documentation: Set up a new project locally](https://angular.dev/installation#set-up-a-new-project-locally)). Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
16
+
Create an empty Angular application (see [Angular Documentation: Set up a new project locally](https://angular.dev/installation#set-up-a-new-project-locally)). Run the following commands:
17
+
18
+
npm install -g @angular/cli
19
+
ng new first-steps-project
20
+
21
+
Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
For complete installation instructions, refer to the following help topic: [Add DevExtreme to an Angular CLI Application](/concepts/40%20Angular%20Components/10%20Getting%20Started/03%20Add%20DevExtreme%20to%20an%20Angular%20CLI%20Application '/Documentation/Guide/Angular_Components/Getting_Started/Add_DevExtreme_to_an_Angular_CLI_Application/').
21
26
22
-
[note] For a quick start, try [DevExtreme Application Template](/concepts/40%20Angular%20Components/30%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/Angular_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
27
+
[note] To start with an application that contains predefined components, try CLI-based [DevExtreme Application Template](/concepts/40%20Angular%20Components/30%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/Angular_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
23
28
24
29
##### Vue
25
30
26
-
First, create an empty Vue JavaScript application (see [Vue Documentation: Creating a Vue Application](https://vuejs.org/guide/quick-start.html#creating-a-vue-application)). Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
31
+
Create an empty Vue JavaScript application (see [Vue Documentation: Creating a Vue Application](https://vuejs.org/guide/quick-start.html#creating-a-vue-application)). Run the following command:
32
+
33
+
npm create vue@latest
34
+
35
+
Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
For complete installation instructions, refer to the following help topic: [Add DevExtreme to a Vue Application](/concepts/55%20Vue%20Components/05%20Add%20DevExtreme%20to%20a%20Vue%20Application/00%20Add%20DevExtreme%20to%20a%20Vue%20Application.md '/Documentation/Guide/Vue_Components/Add_DevExtreme_to_a_Vue_Application/').
31
40
32
-
[note] For a quick start, try [DevExtreme Application Template](/concepts/55%20Vue%20Components/50%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/Vue_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
41
+
[note] To start with an application that contains predefined components, try CLI-based [DevExtreme Application Template](/concepts/55%20Vue%20Components/50%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/Vue_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
33
42
34
43
##### React
35
44
36
-
First, create an empty React JavaScript application (see [React Documentation: Build a React app from Scratch](https://react.dev/learn/build-a-react-app-from-scratch#vite)). Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
45
+
Create an empty React JavaScript application (see [React Documentation: Build a React app from Scratch](https://react.dev/learn/build-a-react-app-from-scratch#vite)). For instance, to create an application with [Vite](https://vite.dev/), run the following command:
46
+
47
+
npm create vite@latest my-app -- --template react
48
+
49
+
Then, in the project file directory, run the following [DevExtreme CLI](/concepts/Common/DevExtreme%20CLI/00%20DevExtreme%20CLI.md '/Documentation/Guide/Common/DevExtreme_CLI/') command to add DevExtreme to your app:
For complete installation instructions, refer to the following help topic: [Add DevExtreme to a React Application](/concepts/50%20React%20Components/05%20Add%20DevExtreme%20to%20a%20React%20Application/00%20Add%20DevExtreme%20to%20a%20React%20Application.md '/Documentation/Guide/React_Components/Add_DevExtreme_to_a_React_Application/').
41
54
42
-
[note] For a quick start, try [DevExtreme Application Template](/concepts/50%20React%20Components/50%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/React_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
55
+
[note] To start with an application that contains predefined components, try CLI-based [DevExtreme Application Template](/concepts/50%20React%20Components/50%20Application%20Template/00%20Application%20Template.md '/Documentation/Guide/React_Components/Application_Template/'). This template includes a navigation menu and several sample views in a responsive layout.
Copy file name to clipboardExpand all lines: concepts/Common/First Steps/07 Style the App.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,9 +56,9 @@ To apply a theme, import a stylesheet where DevExtreme components are used or in
56
56
57
57
---
58
58
59
-
If you want to apply theme colors and typography settings to all page elements (and not only to DevExtreme UI components), add a `dx-viewport` class to the `<body>` tag of your application's index.html file.
59
+
If you want to apply theme colors and typography settings to all page elements (and not only to DevExtreme UI components), add a `dx-viewport` class to the `<body>` tag of your application's `index.html` file.
60
60
61
-
To configure component styles manually, use CSS:
61
+
To configure component styles manually, create an `index.css` file and import it alongside the DevExtreme theme CSS file:
Copy file name to clipboardExpand all lines: concepts/Common/First Steps/10 Specify the Page Layout.md
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,11 @@ Next, specify the component layout in the HTML file:
9
9
<div id="task-grid"></div>
10
10
</div>
11
11
12
+
The `dashboard` is the container for two components: ProgressBar and DataGrid.
13
+
12
14
##### Angular
13
15
14
-
Next, import components into `app.component.ts`. For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/40%20Angular%20Components/10%20Getting%20Started/03%20Add%20DevExtreme%20to%20an%20Angular%20CLI%20Application/40%20Import%20DevExtreme%20Components.md '/Documentation/Guide/Angular_Components/Getting_Started/Add_DevExtreme_to_an_Angular_CLI_Application/#Import_DevExtreme_Components') help topic.
16
+
Next, import components into `app.component.ts`:
15
17
16
18
<!-- tab: app.component.ts -->
17
19
import { Component } from '@angular/core';
@@ -35,9 +37,13 @@ Specify the component layout in the HTML file:
35
37
<dx-data-grid id="task-grid"></dx-data-grid>
36
38
</div>
37
39
40
+
The `dashboard` is the container for two components: ProgressBar and DataGrid.
41
+
42
+
For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/40%20Angular%20Components/10%20Getting%20Started/03%20Add%20DevExtreme%20to%20an%20Angular%20CLI%20Application/40%20Import%20DevExtreme%20Components.md '/Documentation/Guide/Angular_Components/Getting_Started/Add_DevExtreme_to_an_Angular_CLI_Application/#Import_DevExtreme_Components') help topic.
43
+
38
44
##### Vue
39
45
40
-
Next, import components and specify their layout. For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/55%20Vue%20Components/05%20Add%20DevExtreme%20to%20a%20Vue%20Application/60%20Import%20DevExtreme%20Components.md '/Documentation/Guide/Vue_Components/Add_DevExtreme_to_a_Vue_Application/#Import_DevExtreme_Components') help topic.
46
+
Next, import components and specify their layout:
41
47
42
48
<!-- tab: App.vue -->
43
49
<template>
@@ -51,9 +57,13 @@ Next, import components and specify their layout. For detailed instructions on i
51
57
import DxDataGrid from 'devextreme-vue/data-grid';
52
58
</script>
53
59
60
+
The `dashboard` is the container for two components: ProgressBar and DataGrid.
61
+
62
+
For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/55%20Vue%20Components/05%20Add%20DevExtreme%20to%20a%20Vue%20Application/60%20Import%20DevExtreme%20Components.md '/Documentation/Guide/Vue_Components/Add_DevExtreme_to_a_Vue_Application/#Import_DevExtreme_Components') help topic.
63
+
54
64
##### React
55
65
56
-
Next, import components and specify their layout. For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/50%20React%20Components/05%20Add%20DevExtreme%20to%20a%20React%20Application/60%20Import%20DevExtreme%20Components.md '/Documentation/Guide/React_Components/Add_DevExtreme_to_a_React_Application/#Import_DevExtreme_Components') help topic.
66
+
Next, import components and specify their layout:
57
67
58
68
<!-- tab: App.tsx -->
59
69
import DataGrid from 'devextreme-react/data-grid';
@@ -70,4 +80,8 @@ Next, import components and specify their layout. For detailed instructions on i
70
80
71
81
export default App;
72
82
83
+
The `dashboard` is the container for two components: ProgressBar and DataGrid.
84
+
85
+
For detailed instructions on imports, refer to the [Import DevExtreme Components](/concepts/50%20React%20Components/05%20Add%20DevExtreme%20to%20a%20React%20Application/60%20Import%20DevExtreme%20Components.md '/Documentation/Guide/React_Components/Add_DevExtreme_to_a_React_Application/#Import_DevExtreme_Components') help topic.
Copy file name to clipboardExpand all lines: concepts/Common/First Steps/15 Configure DataGrid/05 Bind DataGrid to Data.md
+18-27Lines changed: 18 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,11 @@ The DataGrid component can [load and update data](/concepts/05%20UI%20Components
35
35
36
36
2. Assign the array to the [dataSource](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/dataSource.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#dataSource') property.
37
37
3. Specify [keyExpr](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/keyExpr.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#keyExpr') (`id` in this case).
38
-
4. Use the nested `dxi-data-grid-column` component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display.
38
+
4. Use the nested `dxi-data-grid-column`configuration component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display.
39
39
40
40
<!-- tab: app.component.html -->
41
-
<dx-data-grid ...
41
+
<dx-data-grid
42
+
id="task-grid"
42
43
[dataSource]="tasks"
43
44
keyExpr="id"
44
45
>
@@ -61,7 +62,7 @@ The DataGrid component can [load and update data](/concepts/05%20UI%20Components
61
62
})
62
63
export class AppComponent { ... }
63
64
64
-
For more information about the nested components, refer to the following help topics:
65
+
For more information about the nested configuration components, refer to the following help topics:
-[Properties of the Object Type](/concepts/40%20Angular%20Components/20%20Component%20Configuration%20Syntax/14%20Properties%20of%20the%20Object%20Type.md'/Documentation/Guide/Angular_Components/Component_Configuration_Syntax/#Properties_of_the_Object_Type')
@@ -72,25 +73,20 @@ For more information about the nested components, refer to the following help to
72
73
1. Create the `tasks` array.
73
74
2. Assign the array to the [dataSource](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/dataSource.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#dataSource') property.
74
75
3. Specify [keyExpr](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/keyExpr.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#keyExpr') (`id` in this case).
75
-
4. Use the nested `DxColumn` component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display. Remember to import the necessary nested components.
76
+
4. Use the nested `DxColumn`configuration component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display. Remember to import the necessary configuration components.
76
77
77
78
<!-- tab: App.vue -->
78
79
<template>
79
80
<div id="dashboard">
80
81
<DxProgressBar id="progress" />
81
-
<DxDataGrid ...
82
+
<DxDataGrid
83
+
id="task-grid"
82
84
:data-source="tasks"
83
85
key-expr="id"
84
86
>
85
-
<DxColumn
86
-
data-field="task"
87
-
/>
88
-
<DxColumn
89
-
data-field="dueDate"
90
-
/>
91
-
<DxColumn
92
-
data-field="done"
93
-
/>
87
+
<DxColumn data-field="task" />
88
+
<DxColumn data-field="dueDate" />
89
+
<DxColumn data-field="done" />
94
90
</DxDataGrid>
95
91
</div>
96
92
</template>
@@ -103,7 +99,7 @@ For more information about the nested components, refer to the following help to
103
99
];
104
100
</script>
105
101
106
-
For more information about the nested components, refer to the following help topics:
102
+
For more information about the nested configuration components, refer to the following help topics:
-[Properties of the Object Type](/concepts/55%20Vue%20Components/20%20Component%20Configuration%20Syntax/14%20Properties%20of%20the%20Object%20Type.md'/Documentation/Guide/Vue_Components/Component_Configuration_Syntax/#Properties_of_the_Object_Type')
@@ -113,7 +109,7 @@ For more information about the nested components, refer to the following help to
113
109
1. Create the `tasks` array.
114
110
2. Assign the array to the [dataSource](/api-reference/10%20UI%20Components/GridBase/1%20Configuration/dataSource.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#dataSource') property.
115
111
3. Specify [keyExpr](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/keyExpr.md'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#keyExpr') (`id` in this case).
116
-
4. Use the nested `Column` component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display. Remember to import the necessary nested components.
112
+
4. Use the nested `Column`configuration component to define [columns](/api-reference/10%20UI%20Components/dxDataGrid/1%20Configuration/columns'/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/') you want to display. Remember to import the necessary configuration components.
117
113
118
114
<!-- tab: App.tsx -->
119
115
import DataGrid, { Column } from 'devextreme-react/data-grid';
@@ -127,27 +123,22 @@ For more information about the nested components, refer to the following help to
127
123
return(
128
124
<div id="dashboard">
129
125
<ProgressBar id="progress" />
130
-
<DataGrid ...
126
+
<DataGrid
127
+
id="task-grid"
131
128
dataSource={tasks}
132
129
keyExpr="id"
133
130
>
134
-
<Column
135
-
dataField="task"
136
-
/>
137
-
<Column
138
-
dataField="dueDate"
139
-
/>
140
-
<Column
141
-
dataField="done"
142
-
/>
131
+
<Column dataField="task" />
132
+
<Column dataField="dueDate" />
133
+
<Column dataField="done" />
143
134
</DataGrid>
144
135
</div>
145
136
);
146
137
}
147
138
148
139
export default App;
149
140
150
-
For more information about the nested components, refer to the following help topics:
141
+
For more information about the nested configuration components, refer to the following help topics:
-[Properties of the Object Type](/concepts/50%20React%20Components/40%20Component%20Configuration%20Syntax/12%20Properties%20of%20the%20Object%20Type.md'/Documentation/Guide/React_Components/Component_Configuration_Syntax/#Properties_of_the_Object_Type')
0 commit comments