示例#1
0
 /**
  * Generates a widget to show a html grid
  *
  * @param \Engine\Crud\Grid $grid
  * @return string
  */
 public static function _(\Engine\Crud\Grid $grid)
 {
     $code = '
     <h1>' . $grid->getTitle() . '</h1>
     <table id="' . $grid->getId() . '" autowidth="true" class="' . $grid->getAttrib('class') . ' table table-bordered table-hover">';
     return $code;
 }