Skip to content

Commit 7468f51

Browse files
authored
chore: remove example and link to live demo from README (#9296)
1 parent 0a521b1 commit 7468f51

File tree

1 file changed

+3
-58
lines changed

1 file changed

+3
-58
lines changed

README.md

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -13,60 +13,9 @@
1313

1414
</div>
1515

16-
## Installation
17-
18-
Install the components that you need from npm:
19-
20-
```sh
21-
npm install @vaadin/grid
22-
```
23-
24-
## Usage
25-
26-
[Live demo →](https://webcomponents.dev/edit/JZcKP3kkHcJIgiCaI818/www/index.html)
27-
28-
Import the component's JavaScript module, use the component in your HTML, and control it with JavaScript:
29-
30-
```html
31-
<!DOCTYPE html>
32-
<html>
33-
<head>
34-
<meta charset="utf-8" />
35-
<title>Vaadin example</title>
36-
</head>
37-
<body>
38-
<!-- Use web components in your HTML like regular built-in elements. -->
39-
<vaadin-grid column-reordering-allowed multi-sort>
40-
<vaadin-grid-selection-column auto-select frozen></vaadin-grid-selection-column>
41-
<vaadin-grid-sort-column width="9rem" path="firstName"></vaadin-grid-sort-column>
42-
<vaadin-grid-sort-column width="9rem" path="lastName"></vaadin-grid-sort-column>
43-
<vaadin-grid-column width="9rem" path="address.city"></vaadin-grid-column>
44-
</vaadin-grid>
45-
46-
<!-- Vaadin web components use standard JavaScript modules. -->
47-
<script type="module">
48-
// Importing the following modules registers <vaadin-grid> and its column
49-
// elements so that you can use them in this page.
50-
import '@vaadin/grid/vaadin-grid.js';
51-
import '@vaadin/grid/vaadin-grid-selection-column.js';
52-
import '@vaadin/grid/vaadin-grid-sort-column.js';
53-
54-
// Use component's properties to populate data.
55-
const grid = document.querySelector('vaadin-grid');
56-
fetch('https://demo.vaadin.com/demo-data/1.0/people?count=200')
57-
.then((res) => res.json())
58-
.then((json) => (grid.items = json.result));
59-
</script>
60-
</body>
61-
</html>
62-
```
63-
64-
Serve your HTML with a development server that supports bare module specifiers, such as [`@web/dev-server`](https://modern-web.dev/docs/dev-server/overview/):
65-
66-
```sh
67-
npm i -g @web/dev-server
68-
web-dev-server --node-resolve --open
69-
```
16+
## Documentation
17+
18+
Check out our [documentation and live examples](https://vaadin.com/docs/latest/components).
7019

7120
## Components
7221

@@ -158,10 +107,6 @@ The components below are licensed under [Vaadin Commercial License and Service T
158107
- Chrome (evergreen) for Android (4.4 or newer)
159108
- Safari for iOS (15 or newer)
160109

161-
## Documentation
162-
163-
Check out our [design system documentation](https://vaadin.com/docs/latest/components).
164-
165110
## Examples
166111

167112
Are you looking for an example project to get started? Visit [start.vaadin.com](https://start.vaadin.com/?preset=fusion) to create a Vaadin app.

0 commit comments

Comments
 (0)