open modal from modal success
This commit is contained in:
1 parent
1c0738ec84
commit
5c18ada237
7 files changed
+92
-32
No files matched your search
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Schemas\Concerns\InteractsWithSchemas;
|
||||
use Filament\Schemas\Contracts\HasSchemas;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Concerns\InteractsWithTable;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Filament\Tables\Table;
|
||||
use Livewire\Component;
|
||||
|
||||
class MapChecker extends Component implements HasActions, HasSchemas, HasTable
|
||||
{
|
||||
use InteractsWithActions;
|
||||
use InteractsWithSchemas;
|
||||
use InteractsWithTable;
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->records(fn (): array => [
|
||||
1 => [
|
||||
'title' => 'First item',
|
||||
'slug' => 'first-item',
|
||||
'is_featured' => true,
|
||||
],
|
||||
2 => [
|
||||
'title' => 'Second item',
|
||||
'slug' => 'second-item',
|
||||
'is_featured' => false,
|
||||
],
|
||||
3 => [
|
||||
'title' => 'Third item',
|
||||
'slug' => 'third-item',
|
||||
'is_featured' => true,
|
||||
],
|
||||
])
|
||||
->columns([
|
||||
TextColumn::make('title'),
|
||||
TextColumn::make('slug'),
|
||||
IconColumn::make('is_featured')
|
||||
->boolean(),
|
||||
])
|
||||
->recordActions([
|
||||
// ...
|
||||
]);
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.map-checker');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user