-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2128 from rappasoft/development
v3.5.10 - Development To Master
- Loading branch information
Showing
37 changed files
with
387 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Traits/Styling/Configuration/ActionsStylingConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; | ||
|
||
trait ActionsStylingConfiguration | ||
{ | ||
public function setActionWrapperAttributes(array $actionWrapperAttributes): self | ||
{ | ||
$this->actionWrapperAttributes = [...$this->actionWrapperAttributes, ...$actionWrapperAttributes]; | ||
|
||
return $this; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Traits/Styling/Configuration/CollapsingColumnsStylingConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; | ||
|
||
trait CollapsingColumnsStylingConfiguration | ||
{ | ||
/** | ||
* Used to set attributes for the Collapsed Column Collapse Button | ||
* | ||
* @param array<mixed> $collapsingColumnButtonCollapseAttributes | ||
*/ | ||
public function setCollapsingColumnButtonCollapseAttributes(array $collapsingColumnButtonCollapseAttributes): self | ||
{ | ||
$this->collapsingColumnButtonCollapseAttributes = [...['default-colors' => false, 'default-styling' => false], ...$collapsingColumnButtonCollapseAttributes]; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Used to set attributes for the Collapsed Column Expand Button | ||
* | ||
* @param array<mixed> $collapsingColumnButtonExpandAttributes | ||
*/ | ||
public function setCollapsingColumnButtonExpandAttributes(array $collapsingColumnButtonExpandAttributes): self | ||
{ | ||
$this->collapsingColumnButtonExpandAttributes = [...['default-colors' => false, 'default-styling' => false], ...$collapsingColumnButtonExpandAttributes]; | ||
|
||
return $this; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Traits/Styling/Configuration/FooterStylingConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; | ||
|
||
use Closure; | ||
|
||
trait FooterStylingConfiguration | ||
{ | ||
public function setFooterTrAttributes(Closure $callback): self | ||
{ | ||
$this->footerTrAttributesCallback = $callback; | ||
|
||
return $this; | ||
} | ||
|
||
public function setFooterTdAttributes(Closure $callback): self | ||
{ | ||
$this->footerTdAttributesCallback = $callback; | ||
|
||
return $this; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Traits/Styling/Configuration/PaginationStylingConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; | ||
|
||
trait PaginationStylingConfiguration | ||
{ | ||
public function setPerPageFieldAttributes(array $attributes = []): self | ||
{ | ||
$this->perPageFieldAttributes = [...$this->perPageFieldAttributes, ...$attributes]; | ||
|
||
return $this; | ||
} | ||
|
||
public function setPaginationWrapperAttributes(array $paginationWrapperAttributes): self | ||
{ | ||
$this->paginationWrapperAttributes = array_merge(['class' => ''], $paginationWrapperAttributes); | ||
|
||
return $this; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/Traits/Styling/Configuration/ReorderStylingConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Rappasoft\LaravelLivewireTables\Traits\Styling\Configuration; | ||
|
||
trait ReorderStylingConfiguration | ||
{ | ||
/** | ||
* Used to set attributes for the <th> for Reorder Column | ||
*/ | ||
public function setReorderThAttributes(array $reorderThAttributes): self | ||
{ | ||
$this->reorderThAttributes = [...$this->reorderThAttributes, ...$reorderThAttributes]; | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.