From db7be7e571616418bc1ccd26a19abd437650cb29 Mon Sep 17 00:00:00 2001 From: Serik Date: Thu, 4 Jul 2024 00:39:39 +0500 Subject: [PATCH] readme updated --- readme.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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.