protected function initBootstrapStyle()
{
Html::addCssClass($this->tableOptions, 'kv-grid-table');
if (!$this->bootstrap) {
return;
}
Html::addCssClass($this->tableOptions, 'table');
if ($this->hover) {
Html::addCssClass($this->tableOptions, 'table-hover');
}
if ($this->bordered) {
Html::addCssClass($this->tableOptions, 'table-bordered');
}
if ($this->striped) {
Html::addCssClass($this->tableOptions, 'table-striped');
}
if ($this->condensed) {
Html::addCssClass($this->tableOptions, 'table-condensed');
}
if ($this->floatHeader) {
if ($this->perfectScrollbar) {
$this->floatOverflowContainer = true;
}
if ($this->floatOverflowContainer) {
$this->responsive = false;
Html::addCssClass($this->containerOptions, 'kv-grid-wrapper');
}
}
if ($this->responsive) {
Html::addCssClass($this->containerOptions, 'table-responsive');
}
if ($this->responsiveWrap) {
Html::addCssClass($this->tableOptions, 'kv-table-wrap');
}
}