| Current Path : /home/webg5288/www/laravel_kendal/vendor/filament/tables/src/Table/Concerns/ |
| Current File : /home/webg5288/www/laravel_kendal/vendor/filament/tables/src/Table/Concerns/CanBeStriped.php |
<?php
namespace Filament\Tables\Table\Concerns;
use Closure;
trait CanBeStriped
{
protected bool | Closure $isStriped = false;
public function striped(bool | Closure $condition = true): static
{
$this->isStriped = $condition;
return $this;
}
public function isStriped(): bool
{
return (bool) $this->evaluate($this->isStriped);
}
}