File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 4
4
[ ![ StyleCI] ( https://styleci.io/repos/250246992/shield?style=plastic )] ( https://github.styleci.io/repos/250246992 )
5
5
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/rappasoft/laravel-livewire-tables.svg?style=flat-square )] ( https://packagist.org/packages/rappasoft/laravel-livewire-tables )
6
6
7
- A Laravel Livewire component for data tables.
8
-
9
7
** This package is currently in development and the source is constantly changing, use at your own risk.**
10
8
9
+ A dynamic Laravel Livewire component for data tables.
10
+
11
+ This plugin assumes you already have [ Laravel Livewire] ( https://laravel-livewire.com/ ) installed and configured in your project.
12
+
11
13
## Installation
12
14
13
15
You can install the package via composer:
@@ -80,6 +82,20 @@ public function query() : Builder;
80
82
public function columns() : array;
81
83
```
82
84
85
+ ### Rendering the table
86
+
87
+ Place the following where you want the table to appear.
88
+
89
+ Laravel 6.x:
90
+
91
+ ` @livewire('users-table') `
92
+
93
+ Laravel 7.x:
94
+
95
+ ` <livewire:users-table /> `
96
+
97
+ Obviously replace * users-table* with your component name.
98
+
83
99
### Defining Columns
84
100
85
101
You can define the columns of your table with the column class:
You can’t perform that action at this time.
0 commit comments