Beispiel #1
0
 public function testShowModal()
 {
     $tag = new Button('foo');
     $tag->showModal('bar');
     $this->assertEquals('<a class="btn btn-default" href="#" data-toggle="modal" data-remote="false" data-target="#bar">foo</a>', $tag->getHTML());
 }
Beispiel #2
0
 /**
  * @param string $idModal
  * @return $this
  */
 public function showModal($idModal)
 {
     $this->uiElement->showModal($idModal);
     return $this;
 }