Introducing Laravel Quizzes! Play now

Laravel Livewire Tables Documentation

This is the documentation for v2. You can switch versions in the menu at the top. Check your current version with the following command:

composer show rappasoft/laravel-livewire-tables

Available Methods

These are the available configuration methods for pagination.


setPageName

Set the page name for the component's pagination, defaults to page.

public function configure(): void
{
    $this->setPageName('users');
}

setPaginationStatus

Enabled by default, enable/disable pagination for the component.

public function configure(): void
{
    $this->setPaginationStatus(true);
    $this->setPaginationStatus(false);
}

setPaginationEnabled

Enable pagination for the component.

public function configure(): void
{
    // Shorthand for $this->setPaginationStatus(true);
    $this->setPaginationEnabled();
}

setPaginationDisabled

Disable pagination for the component.

public function configure(): void
{
    // Shorthand for $this->setPaginationStatus(false);
    $this->setPaginationDisabled();
}

setPaginationVisibilityStatus

Enabled by default, enable/disable pagination visibility.

public function configure(): void
{
    $this->setPaginationVisibilityStatus(true);
    $this->setPaginationVisibilityStatus(false);
}

setPaginationVisibilityEnabled

Enable pagination visibility.

public function configure(): void
{
    // Shorthand for $this->setPaginationVisibilityStatus(true);
    $this->setPaginationVisibilityEnabled();
}

setPaginationVisibilityDisabled

Disable pagination visibility.

public function configure(): void
{
    // Shorthand for $this->setPaginationVisibilityStatus(false);
    $this->setPaginationVisibilityDisabled();
}

setPerPageVisibilityStatus

Enabled by default, enable/disable per page visibility.

public function configure(): void
{
    $this->setPerPageVisibilityStatus(true);
    $this->setPerPageVisibilityStatus(false);
}

setPerPageVisibilityEnabled

Enable per page visibility.

public function configure(): void
{
    // Shorthand for $this->setPerPageVisibilityStatus(true);
    $this->setPerPageVisibilityEnabled();
}

setPerPageVisibilityDisabled

Disable per page visibility.

public function configure(): void
{
    // Shorthand for $this->setPerPageVisibilityStatus(false);
    $this->setPerPageVisibilityDisabled();
}

setPerPageAccepted

Set the accepted values for the per page dropdown. Defaults to [10, 25, 50]

public function configure(): void
{
    $this->setPerPageAccepted([10, 25, 50, 100]);
}

Note: Set an option of -1 to enable All.

setPerPage

Set the default selected option of the per page dropdown.

public function configure(): void
{
    $this->setPerPage(10);
}

Note: The value set must be included in the per page accepted values.

setPaginationMethod

Set the pagination method. By default, the table will use the paginate method.

You may specify simplePaginate like so:

public function configure(): void
{
    $this->setPaginationMethod('simple');
}