Initial commit
This commit is contained in:
24
app/Http/Livewire/TableTitle.php
Normal file
24
app/Http/Livewire/TableTitle.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class TableTitle extends Component
|
||||
{
|
||||
public $title;
|
||||
|
||||
protected $listeners = ['tableTitle'=> 'tableTitleDispatched'];
|
||||
|
||||
|
||||
public function tableTitleDispatched($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.table-title');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user