File "CanBeStriped.php"

Full Path: /home/tecassol/public_html/tecas-solar.ma/vendor/filament/tables/src/Table/Concerns/CanBeStriped.php
File size: 389 bytes
MIME-type: text/x-php
Charset: utf-8

<?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);
    }
}