Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.49k stars 220 forks source link

Add `Footer::pageName` #1364

Closed luanfreitasdev closed 8 months ago

luanfreitasdev commented 8 months ago

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

Description

URL: <! -- localhost/?customerPage=2&usersPage=2 -->

<div>
    <livewire:customers-table />
    <livewire:users-table />
</div>

// \App\Livewire\CustomersTable::class

Footer::make()
      ->pageName('customerPage')

// \App\Livewire\UsersTable::class
Footer::make()
       ->pageName('usersPage')

Related Issue(s): https://github.com/Power-Components/livewire-powergrid/issues/1363.

Documentation

This PR requires Documentation update?

dansysanalyst commented 8 months ago

Awesome PR.

I have pushed a commit limiting pageName to be alphanumeric.

I noticed a strange behavior when setting my page name to "Ντόναλντ" (Donald, in Greek). It duplicated the query string field.

CleanShot 2024-02-01 at 00 48 02@2x