generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds graph, progress and color customisation
- Loading branch information
1 parent
a0a19bc
commit 6a9d152
Showing
9 changed files
with
6,572 additions
and
145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
@import '../../vendor/filament/filament/resources/css/theme.css'; | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
src/AdvancedStatsOverviewWidget/Concerns/CanCustomiseIconPosition.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,25 @@ | ||
<?php | ||
|
||
namespace EightyNine\FilamentAdvancedWidget\AdvancedStatsOverviewWidget\Concerns; | ||
|
||
trait CanCustomiseIconPosition | ||
{ | ||
/** | ||
* Icon position can be either "start" or "end". | ||
* | ||
* @var string|null | ||
*/ | ||
protected ?string $iconPosition = "end"; | ||
|
||
public function iconPosition(string $position): static | ||
{ | ||
$this->iconPosition = $position; | ||
|
||
return $this; | ||
} | ||
|
||
public function getIconPosition(): string | ||
{ | ||
return $this->iconPosition; | ||
} | ||
} |
Oops, something went wrong.