-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gridview panel with adminlte layout #380
Comments
OK, found part of it. You can redefine panelTemplate, panelHeadingTemplate, panelFooterTemplate. |
Easiest way is to set <div class="box">
<div class="box-header with-border">
<h3 class="box-title">Bordered Table</h3>
</div><!-- /.box-header -->
<div class="box-body">
<?= \kartik\grid\GridView::widget([
'dataProvider' => $dp,
'columns' => $cols,
'panel' => false,
]) ?>
</div><!-- /.box-body -->
<div class="box-footer clearfix">
<!-- other markup -->
</div><!-- /.box-footer-->
</div> You need to add the tags for export and toolbar to your |
However what you are doing is also on the right path... I will try to enhance the panel features to see if I can allow configurable classes. |
Resolved via update to release v3.0.8 (still not tagged and in You can override all panel classes and note the new |
@kartik-v Hi how to you override the panel classes. An example would be great. Thanks |
|
Hello Kartik,
I adjusted my Yii advanced app backend to use adminlte. I struggle a bit adjusting your grid view panels to take adminlte's appearance.
Here is what I now have:
and here is "pure" adminlte look:
You are using bootstrap panels, it seems that adminlte is using something they call "box" to wrap around the grid view. They have box-header, box-body, box-footer...
Is it possible to change your class names from panel-XXX to box-XXX through your grid view configuration settings? I found headingOptions and footerOptions to change panel-heading and panel-footer, but I haven't seen any setting to change the main panel class of the enclosing element.
Is it possible to change?
Thank You.
Pierre
The text was updated successfully, but these errors were encountered: