示例#1
0
 public function render()
 {
     $id = $this->tag->getAttrib('id') ? $this->tag->getAttrib('id') . '_button' : uniqid();
     $this->button->id($id);
     $this->ul->aria('labelledby', $id);
     return $this->tag->append($this->button->render())->append($this->ul->render())->render();
 }
示例#2
0
 public function testBootstrapMethods()
 {
     $list = new Ul();
     $list->unstyled();
     $this->assertTrue($list->hasClass('list-unstyled'));
     $list->inline();
     $this->assertFalse($list->hasClass('list-unstyled'));
     $this->assertTrue($list->hasClass('list-inline'));
 }