feat: patient view, media player, and rich editor enhancements
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class ExpandableText extends Component
|
||||
{
|
||||
public string $html = '';
|
||||
public int $limit = 200;
|
||||
public bool $expanded = false;
|
||||
|
||||
public function toggle(): void
|
||||
{
|
||||
$this->expanded = ! $this->expanded;
|
||||
}
|
||||
|
||||
public function render(): \Illuminate\View\View
|
||||
{
|
||||
return view('livewire.expandable-text');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user