preview dialogue component edited

This commit is contained in:
Burak Civan
2022-09-09 12:12:08 +03:00
parent 0724cd2b05
commit 166645aef3
3 changed files with 10 additions and 3 deletions

View File

@ -23,19 +23,22 @@ class Information extends Component
public $placement;
public $id;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(
$document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = ''
$document, bool $hideShow = false, string $showRoute = '', string $showDocumentRoute = '', string $placement = '', string $id = ''
) {
$this->document = $document;
$this->hideShow = $hideShow;
$this->showRoute = $this->getShowRoute($document->contact->type, $showRoute);
$this->showDocumentRoute = $this->getShowRoute($document->type, $showDocumentRoute);
$this->placement = (! empty($placement)) ? $placement : 'left';
$this->id = (! empty($id)) ? $id : 'tooltip-information-' . $document->id;
}
/**