Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions View/Helper/TableListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ public function __call($method, $params) {
/**
* `<table>`を表示する
*
* @param string $tableType テーブル種別 `table-hover`,`table-striped`,`table-bordered`,`table-condensed`
* @return string HTML
* @see http://getbootstrap.com/css/#tables
*/
public function startTable() {
public function startTable($tableType = 'table-hover') {
$html = '';

if ($tableType) {
$tableType = ' ' . $tableType;
}

$html .= '<div class="table-responsive">';
$html .= '<table class="table table-hover">';
$html .= '<table class="table' . $tableType . '">';
return $html;
}

Expand Down