Php artisan make:livewire-datatable tables.bar -> 'app/Http/Livewire/Tables/Bar.php' Provide a datasource by declaring public property $model OR public method builder() that returns an instance of Illuminate\Database\Eloquent\Builder Php artisan make:livewire-datatable foo -> 'app/Http/Livewire/Foo.php' Gives ability to show/hide columns, accepts strings 'inline', 'buttons', or 'select'īlade view to be included immediately after the buttons at the top of the table in the component, which can therefore access public propertiesīlade view to be included immediately before the table in the component, which can therefore access public propertiesīlade view to be included immediately after the table in the component, which can therefore access public propertiesĬomponent Syntax Create a livewire component that extends Mediconesystems\LivewireDatatables\LivewireDatatable Pagination controls are removed if this is true The top row of the table including the column titles is removed if this is true Specifies the column and direction for initial table sort. String| Array of column definitions [optional format in \Ĭolumn values are formatted as per the default time format, or format can be included in string with | separatorĭefines columns to be included in global search String| Array of column definitions [ and optional format in \Ĭolumn values are formatted as per the default date format, or format can be included in string with | separator Include="name, email, dob|Birth Date, role" Specify columns to be shown in table, label can be specified by using | delimter Type on different pages needs to have a unique name attribute assigned to each one so they do not conflict with each Attention: Please note that having multiple datatables on the same page or more than one datatable of the same
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |