RedirectRowAction, that is now used to render the pre-configured ShowRowActionbool $openInNewWindow = false to the ShowRowActionAddHeadAction, that is using the built-in RedirectHeadAction
Add translation for it that you'll have to add to your own translationsconfig('laravel-table.icon.add') config for it with the <i class="fa-solid fa-circle-plus fa-fw"></i> default value that you'll also have to add to your published configuration file->when(bool $condition) method to an instantiated head action, in order to enable it conditionallyRedirectHeadAction, that is now used to render the pre-configured CreateHeadActionbool $openInNewWindow = false to the CreateHeadActionform-select class uses for Bootstrap 4 template selects: replaced them by custom-selectmake:table <TableName> --model=<ModelNamespace> command2022-09-21
livewire/livewire dependency as the package is now based on itokipa/laravel-html-helper dependencyphpcs/phpcbf by laravel/pint:point_right: See the upgrade guide
nulldateTimeFormat method:
dateTimeFormat method signature to dateTimeFormat(string $dateTimeFormat, string $timezone = null): \Okipa\LaravelTable\Columnconfig('app.timezone') is usedappendData method$type property to src/Console/Commands/MakeTable in order to display correct messages:
Table already exists!Table created successfully.--model option->rowsConditionalClasses() method to be called several times on a table. In addition, the second $rowClasses argument of this method now accepts array or closure (which let you manipulate a \Illuminate\Database\Eloquent\Model $model attribute)->appendData() method, which led to + character addition when values were containing spaces.okipa/laravel-html-helper version in composer.json:point_right: See the upgrade guide
$column->value() method (https://github.com/Okipa/laravel-table/issues/54).button method without arguments has no visual effect: added instructions in V2 to v3 the upgrade-guide to take care of this new behaviour.rows number definition was wrongly named rows number selection at different places (config, templates, methods, ...): this is an unfortunately breaking change if you published config or templates but I take advantage of the early release of the V3 and from the fact that Laravel 8 is not released to do it.GET http request.button method behaviour which is supposed to allow usage without arguments.Table instances :
rowsSearchingTemplaterowsNumberSelectionTemplatecreateActionTemplatecolumnTitlesTemplatenavigationStatusTemplatepaginationTemplate:point_right: See the upgrade guide
:point_right: See the upgrade guide
->icon() method.->prepend() method to the table columns (which will replace the previous ->icon() one) to prepend HTML to a column value.->append() method to the table columns to append HTML to a column value.show, edit and destroy actions are now defined in their own component. This way, it becomes easier to customize tiny parts of the table without touching to the others.
config('laravel-table.template.show'), config('laravel-table.template.edit') and config('laravel-table.template.destroy') configs to set each new default component path.->showTemplate(), ->editTemplate() and ->destroyTemplate() to give the ability to customize these templates on the fly.How can I help you explore Laravel packages today?