-
-
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.
- Loading branch information
Showing
36 changed files
with
403 additions
and
204 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
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; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
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,31 @@ | ||
<?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; | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
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,23 @@ | ||
<?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; | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
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,21 @@ | ||
<?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; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
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,18 @@ | ||
<?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.