File "CanDeferLoading.php"

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

<?php

namespace Filament\Tables\Table\Concerns;

use Closure;

trait CanDeferLoading
{
    protected bool | Closure $isLoadingDeferred = false;

    public function deferLoading(bool | Closure $condition = true): static
    {
        $this->isLoadingDeferred = $condition;

        return $this;
    }

    public function isLoadingDeferred(): bool
    {
        return (bool) $this->evaluate($this->isLoadingDeferred);
    }

    public function isLoaded(): bool
    {
        return $this->getLivewire()->isTableLoaded();
    }
}