File "CanDeferLoading.php"

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

<?php

namespace Filament\Tables\Concerns;

trait CanDeferLoading
{
    public bool $isTableLoaded = false;

    /**
     * @deprecated Override the `table()` method to configure the table.
     */
    public function isTableLoadingDeferred(): bool
    {
        return false;
    }

    public function loadTable(): void
    {
        $this->isTableLoaded = true;
    }

    public function isTableLoaded(): bool
    {
        if (! $this->getTable()->isLoadingDeferred()) {
            return true;
        }

        return $this->isTableLoaded;
    }
}