예제 #1
0
 public function testStyling()
 {
     BootstrapStyling::applyTo($this->makeGrid());
     $this->checkOutput();
     FoundationStyling::applyTo($this->makeGrid());
     $this->checkOutput();
     SemanticUIStyling::applyTo($this->makeGrid());
     $this->checkOutput();
 }
예제 #2
0
 protected function demo14Details()
 {
     $provider = $this->getDataProvider();
     $provider->operations()->add(new FilterOperation('id', FilterOperation::OPERATOR_EQ, $_GET['id']));
     foreach ($provider as $item) {
         $view = new TemplateView('data_view/table', get_object_vars($item));
         BootstrapStyling::applyTo($view);
         $layout = new DataView(function () use($view) {
             $out = $view->render();
             return "<div class='panel panel-default'>\n                <div class='panel-body'>{$out}</div>\n            </div>";
         });
         return $layout->render();
     }
 }
 protected function styledPage($view, $title = '')
 {
     $this->layout()->mainSection()->addChild($view);
     BootstrapStyling::applyTo($this->layout());
     return $this->page(null, $title);
 }