16 lines
324 B
PHP
16 lines
324 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace Builder\View\Grid\Concerns;
|
|
use Builder\View\Components\Widgets\Dialog;
|
|
trait HasDialog
|
|
{
|
|
protected $dialog;
|
|
|
|
public function dialog(\Closure $closure)
|
|
{
|
|
$this->dialog = new Dialog();
|
|
call_user_func($closure, $this->dialog);
|
|
return $this;
|
|
}
|
|
}
|