Esempio n. 1
0
 public function testButton()
 {
     $this->assertInstanceOf('Nethgui\\Widget\\Xhtml\\Button', $this->object->button('button'));
 }
Esempio n. 2
0
 public function renderColumnActions(\Nethgui\Renderer\Xhtml $view)
 {
     $buttonList = $view->buttonList(\Nethgui\Renderer\WidgetFactoryInterface::BUTTONSET)->setAttribute('maxElements', 1);
     foreach ($view as $actionId => $actionInfo) {
         $button = $view->button($actionId, \Nethgui\Renderer\WidgetFactoryInterface::BUTTON_LINK)->setAttribute('value', $actionInfo[1]);
         $buttonList->insert($button);
     }
     return $buttonList;
 }