stuck with livewire mapchecker
This commit is contained in:
1 parent
5fb2916f19
commit
75d30353fc
10 files changed
+91
-85
No files matched your search
@@ -19,14 +19,16 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
|
||||
use InteractsWithSchemas;
|
||||
use InteractsWithTable;
|
||||
|
||||
public $id = 0;
|
||||
public $match_id = 0;
|
||||
|
||||
public $event_id = 0;
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->records(fn (): array => [
|
||||
1 => [
|
||||
'title' => 'First item',
|
||||
'title' => 'First item ',
|
||||
'slug' => 'first-item',
|
||||
'is_featured' => true,
|
||||
],
|
||||
@@ -42,7 +44,7 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
|
||||
],
|
||||
])
|
||||
->columns([
|
||||
TextColumn::make('title'),
|
||||
TextColumn::make('title')->label($this->match_id),
|
||||
TextColumn::make('slug'),
|
||||
IconColumn::make('is_featured')
|
||||
->boolean(),
|
||||
@@ -54,11 +56,6 @@ class MapChecker extends Component implements HasActions, HasSchemas, HasTable
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.map-checker');
|
||||
}
|
||||
|
||||
public function loadData($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
return view('livewire.mapchecker');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user