Skip to content
On this page

Getting Started

This section will help you set up the frontend components

Step. 1: install package

sh
$ composer require humweb\inertia-table
$ npm i inertia-vue-table

Step. 2: Import component and mixin

js
import {Table, HasInertiaTable} from 'inertia-vue-table';

Add mixin to your component

js
mixins: [HasInertiaTable]

Step. 3: Add component to your template

js
 <Table
    :records="records"
    :pagination="pagination"
    v-model="tableData"
    @sort="sortBy"
/>