diff --git a/readme.md b/readme.md index 6201091..c17dbff 100644 --- a/readme.md +++ b/readme.md @@ -25,12 +25,12 @@ This reusable table component is simple and can be expanded with additional feat - Mobile/Tablet view -1. The component requires two properties: +The component requires two properties: - columnConfig. This is representaion of your entity. - data. List of data that should be displayed in table -## Full example: +## Usage: ```js import { LitElement, html, css } from "lit"; @@ -92,3 +92,8 @@ export class MovieList extends LitElement { } customElements.define("movie-list", MovieList); ``` + +In this example: + +tableConfig defines the columns with optional formatter and render functions. +data contains the rows of the table.