Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-werner committed Mar 6, 2024
1 parent 308348f commit 5544234
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,8 @@ Publish the vendor files by running the following command:
```bash
php artisan vendor:publish --provider="WdevRs\LaravelDatagrid\LaravelDatagridServiceProvider" --tag="gridjs"
```

**Using Vue 3 frontend**

```bash
php artisan vendor:publish --provider="WdevRs\LaravelDatagrid\LaravelDatagridServiceProvider" --tag="datagrid"
```

Register the DataGrid fronted Vue.js component by adding the following line to your `app.js`:

**Using Grid.js frontend**

```javascript
import DataGrid from "./vendor/laravel-datagrid/gridjs/Components/DataGrid.vue";

Expand All @@ -65,7 +56,14 @@ Use the component in your view file (or in another component):
></data-grid>
```

**Using Datagrid frontend**

**Using Datagrid Vue 3 frontend**

```bash
php artisan vendor:publish --provider="WdevRs\LaravelDatagrid\LaravelDatagridServiceProvider" --tag="datagrid"
```

Register the DataGrid fronted Vue.js component by adding the following line to your `app.js`:

```javascript
import DataGrid from "./vendor/laravel-datagrid/datagrid/Components/DataGrid.vue";
Expand All @@ -74,6 +72,7 @@ app.component('data-grid', DataGrid);
```

Use the component in your view file (or in another component):

```html
<data-grid
:columns="{{json_encode($columns)}}"
Expand Down

0 comments on commit 5544234

Please sign in to comment.