Skip to content

Commit b1b0d69

Browse files
committed
Readme updates. Add filtersFormAction
1 parent 06f293d commit b1b0d69

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This package is to displaying the model data in a Grid table.
2626

2727
Run the composer command:
2828

29-
`composer require itstructure/laravel-grid-view "~1.0.7"`
29+
`composer require itstructure/laravel-grid-view "~1.0.8"`
3030

3131
### If you are testing this package from a local server directory
3232

@@ -467,6 +467,6 @@ $gridData = [
467467

468468
## License
469469

470-
Copyright © 2020-2021 Andrey Girnik girnikandrey@gmail.com.
470+
Copyright © 2020-2022 Andrey Girnik girnikandrey@gmail.com.
471471

472472
Licensed under the [MIT license](http://opensource.org/licenses/MIT). See LICENSE.txt for details.

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### CHANGE LOG:
22

3+
**1.0.8 January 10, 2022:**
4+
- Readme fixes.
5+
- Add `filtersFormAction` attribute with empty default value.
6+
37
**1.0.7 April 22, 2021:**
48
- Make possibility to publish views and translations.
59

resources/views/grid.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</tr>
6565
@if ($useFilters)
6666
<tr>
67-
<form action="" method="get" id="grid_view_filters_form">
67+
<form action="{{ $filtersFormAction }}" method="get" id="grid_view_filters_form">
6868
<td></td>
6969
@foreach($columnObjects as $column_obj)
7070
<td>

src/Grid.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ class Grid
8181
*/
8282
protected $rowsFormAction = '';
8383

84+
/**
85+
* @var string
86+
*/
87+
protected $filtersFormAction = '';
88+
8489
/**
8590
* @var bool
8691
*/
@@ -162,6 +167,7 @@ public function render(): string
162167
'paginator' => $this->paginator,
163168
'title' => $this->title,
164169
'rowsFormAction' => $this->rowsFormAction,
170+
'filtersFormAction' => $this->filtersFormAction,
165171
'useSendButtonAnyway' => $this->useSendButtonAnyway,
166172
'searchButtonLabel' => $this->getSearchButtonLabel(),
167173
'resetButtonLabel' => $this->getResetButtonLabel(),

0 commit comments

Comments
 (0)