Yajra\Datatables\Request::isSearchable PHP Method

isSearchable() public method

Check if Datatables is searchable.
public isSearchable ( ) : boolean
return boolean
    public function isSearchable()
    {
        return $this->input('search.value') != '';
    }

Usage Example

Esempio n. 1
0
 /**
  * Perform necessary filters.
  *
  * @return void
  */
 public function filterRecords()
 {
     if ($this->autoFilter && $this->request->isSearchable()) {
         $this->filtering();
     }
     if (is_callable($this->filterCallback)) {
         call_user_func($this->filterCallback, $this->filterCallbackParameters);
     }
     $this->columnSearch();
     $this->filteredRecords = $this->isFilterApplied ? $this->count() : $this->totalRecords;
 }
All Usage Examples Of Yajra\Datatables\Request::isSearchable