Uanble to call component method. Public mehtod [exportToCsv] not found on component: [dashboard-stat.simple] #673
janInnoBrain
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hallo,
i have a error and can not figure it out. I need your help. I dont understand where it is comming from.
I want to export a powergrid table to Csv.
use Carbon\Carbon;
use App\Enums\DashboardStat\View;
use Illuminate\Support\Collection;
use App\Http\Livewire\Traits\WithFilters;
use Illuminate\Database\Eloquent\Builder;
use App\Http\Livewire\Traits\WithBaseQuery;
use PowerComponents\LivewirePowerGrid\Header;
use PowerComponents\LivewirePowerGrid\Footer;
use PowerComponents\LivewirePowerGrid\Column;
use PowerComponents\LivewirePowerGrid\PowerGrid;
use PowerComponents\LivewirePowerGrid\Exportable;
use App\Http\Livewire\Traits\WithSimpleStatQuery;
use PowerComponents\LivewirePowerGrid\PowerGridEloquent;
use PowerComponents\LivewirePowerGrid\PowerGridComponent;
use PowerComponents\LivewirePowerGrid\Traits\ActionButton;
class SimpleStatTable extends PowerGridComponent
{
use ActionButton;
use WithSimpleStatQuery;
use WithFilters;
use WithBaseQuery;
in my view i included the livewire component like so
@livewire('power-grid.simple-stat-table', ['stat' => $stat, 'statFilters' => $this->validateAndMergeFilters()])
Beta Was this translation helpful? Give feedback.
All reactions