public function setDeferedData()
    {
        if (request()->has('search')) {
            return $this;
        }

        $totalItemsCount    = $this->datatable->count();
        $this->deferredData = $this->datatable->ajax()->getData()->data; // dubluje zapytania sql
        $filters            = $this->datatable->getFilters();
        $query              = $this->datatable->query();

        foreach ($filters as $filter) {
            $this->addFilter($filter, $query);
        }

        $this->attributes = array_merge($this->attributes, [
            "deferLoading"   => $totalItemsCount,
            'iDisplayLength' => $this->datatable->getPerPage()
        ]);
        return $this;
    }