Skip to content

Commit

Permalink
docs: update the grid readme example not to use em units (#7395)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki authored May 10, 2024
1 parent 4038b4c commit f3fb463
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Import the component's JavaScript module, use the component in your HTML, and co
</head>
<body>
<!-- Use web components in your HTML like regular built-in elements. -->
<vaadin-grid theme="row-dividers" column-reordering-allowed multi-sort>
<vaadin-grid column-reordering-allowed multi-sort>
<vaadin-grid-selection-column auto-select frozen></vaadin-grid-selection-column>
<vaadin-grid-sort-column width="9em" path="firstName"></vaadin-grid-sort-column>
<vaadin-grid-sort-column width="9em" path="lastName"></vaadin-grid-sort-column>
<vaadin-grid-column width="9em" path="address.city"></vaadin-grid-column>
<vaadin-grid-sort-column width="9rem" path="firstName"></vaadin-grid-sort-column>
<vaadin-grid-sort-column width="9rem" path="lastName"></vaadin-grid-sort-column>
<vaadin-grid-column width="9rem" path="address.city"></vaadin-grid-column>
</vaadin-grid>

<!-- Vaadin web components use standard JavaScript modules. -->
Expand Down
8 changes: 4 additions & 4 deletions packages/grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ A web component for showing tabular data.
[![npm version](https://badgen.net/npm/v/@vaadin/grid)](https://www.npmjs.com/package/@vaadin/grid)

```html
<vaadin-grid theme="row-dividers" column-reordering-allowed multi-sort>
<vaadin-grid column-reordering-allowed multi-sort>
<vaadin-grid-selection-column auto-select frozen></vaadin-grid-selection-column>
<vaadin-grid-sort-column width="9em" path="firstName"></vaadin-grid-sort-column>
<vaadin-grid-sort-column width="9em" path="lastName"></vaadin-grid-sort-column>
<vaadin-grid-column id="address" width="15em" flex-grow="2" header="Address"></vaadin-grid-column>
<vaadin-grid-sort-column width="9rem" path="firstName"></vaadin-grid-sort-column>
<vaadin-grid-sort-column width="9rem" path="lastName"></vaadin-grid-sort-column>
<vaadin-grid-column id="address" width="15rem" flex-grow="2" header="Address"></vaadin-grid-column>
</vaadin-grid>

<script>
Expand Down

0 comments on commit f3fb463

Please sign in to comment.