Documentation version
v4 (master)
v2 (v2-master)
v1 (v1)
Documentation page
Introduction
Support Me
Questions and Issues
Changelog
Upgrade Guide
Requirements
Installation
Configuration
Rendering
Commands
Creating Components
The Query
Configuration
Available Methods
Events
Configurable Areas
Creating Columns
Relationships
Available Methods
Other Column Types
Column Selection
Secondary Header
Footer
Clickable Rows
Available Methods
Available Methods
Available Methods
Introduction
Creating Bulk Actions
Processing Bulk Actions
Available Methods
Introduction
Creating Filters
Applying Filters
Available Methods
Introduction
Setup
Saving
Available Methods
Available Methods
Available Methods
Basic Example
Advanced Example
Bulk Action Export
Refreshing
Multiple Tables Same Page
Adding Custom Markup
Debugging
Sponsor: Introduction
Re-using attributes across tables
Basic Modal Example
Clicking a row to edit in a modal
On this page
Public properties were replaced by their configuration method counterparts.
The query can be defined in multiple ways
Columns now have different types
Filters now have different types
Applying filters
Modals
You are reading documentation for v2 .
The latest version is v4 .
Switch versions from the documentation menu. Check the installed version with:
composer show rappasoft/laravel-livewire-tables
This may not be an exhaustive list, please check out the examples for further clarification.
Upgrading from version 1 to version 2:
# Public properties were replaced by their configuration method counterparts.
For example:
In v1:
1 public string $ primaryKey = ' id ' ;
In v2:
1 public function configure (): void
2 {
3 $this-> setPrimaryKey ( ' id ' );
4 }
# The query can be defined in multiple ways
In version 1, the query was defined with the query() method. In version 2, the query is either defined with the builder() method or the $model property.
# Columns now have different types
In version 1, there was just one Column class. In version 2, there's that same class but also other classes for specified uses, i.e BooleanColumn .
# Filters now have different types
In version 1, there was just one Filter class In version 2 there is a different filter class for each type of filter.
# Applying filters
In version 2, you can apply filter queries at the filter level .
But if you choose to use the old method of applying filters at the builder level, the method to grab the filter value is different.
Old:
1 $this-> getFilter ( ' active ' );
New:
1 $this-> getAppliedFilterWithValue ( ' active ' );
# Modals
modalsView() was changed to customView()