Skip to content

Commit db7be7e

Browse files
readme updated
1 parent c335fb8 commit db7be7e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

readme.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ This reusable table component is simple and can be expanded with additional feat
2525
- Mobile/Tablet view
2626
<img width="500" src="https://github.com/serikshaikamalov/lit-components/assets/11631958/b4c384ad-a266-4079-a0cb-a94ed8fdd395"/>
2727

28-
1. The component requires two properties:
28+
The component requires two properties:
2929

3030
- columnConfig. This is representaion of your entity.
3131
- data. List of data that should be displayed in table
3232

33-
## Full example:
33+
## Usage:
3434

3535
```js
3636
import { LitElement, html, css } from "lit";
@@ -92,3 +92,8 @@ export class MovieList extends LitElement {
9292
}
9393
customElements.define("movie-list", MovieList);
9494
```
95+
96+
In this example:
97+
98+
tableConfig defines the columns with optional formatter and render functions.
99+
data contains the rows of the table.

0 commit comments

Comments
 (0)