src/Ease/TWB/Modal.php
public function finalize()
    {
        Part::twBootstrapize();
        $modalDialog  = $this->addItem(new \Ease\Html\DivTag(null,
                ['class' => 'modal-dialog', 'role' => 'document']));
        $modalContent = $modalDialog->addItem(new \Ease\Html\DivTag(null,
                ['class' => 'modal-content']));
        $this->header->addItem(new \Ease\Html\H4Tag($this->title,
                ['class' => 'modal-title', 'id' => $this->title.'ID']));
        $modalContent->addItem($this->header);
        $modalContent->addItem($this->body);
        $modalContent->addItem($this->footer);
        if (is_array($this->properties)) {
            \Ease\Shared::webPage()->addJavaScript(
                ' $(function ()
{
    $("#'.$this->name.'").modal( {'.Part::partPropertiesToString($this->properties).'});
});
', null, true
            );
        } else {
            \Ease\Shared::webPage()->addJavaScript(
                ' $(function ()
{
    $("#'.$this->name.'").modal( '.$this->properties.');
});
', null, true
            );
        }
    }
public function finalize()
    {
        Part::twBootstrapize();
        $modalDialog  = $this->addItem(new \Ease\Html\DivTag(null,
                ['class' => 'modal-dialog', 'role' => 'document']));
        $modalContent = $modalDialog->addItem(new \Ease\Html\DivTag(null,
                ['class' => 'modal-content']));
        $this->header->addItem(new \Ease\Html\H4Tag($this->title,
                ['class' => 'modal-title', 'id' => $this->title.'ID']));
        $modalContent->addItem($this->header);
        $modalContent->addItem($this->body);
        $modalContent->addItem($this->footer);
        if (is_array($this->properties)) {
            \Ease\Shared::webPage()->addJavaScript(
                ' $(function ()
{
    $("#'.$this->name.'").modal( {'.Part::partPropertiesToString($this->properties).'});
});
', null, true
            );
        } else {
            \Ease\Shared::webPage()->addJavaScript(
                ' $(function ()
{
    $("#'.$this->name.'").modal( '.$this->properties.');
});
', null, true
            );
        }
    }
Finalize modal.