예제 #1
0
파일: ButtonTest.php 프로젝트: myclabs/muih
 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());
 }
예제 #2
0
파일: Button.php 프로젝트: myclabs/muih
 /**
  * @param string $idModal
  * @return $this
  */
 public function showModal($idModal)
 {
     $this->uiElement->showModal($idModal);
     return $this;
 }