yii2-grid
yii2-grid copied to clipboard
Set default values by DI
Dear all,
Does DI work with kartik gridview like this?
I've think the grid needs to be register first.
Best, Toby
`
Yii::$container->set(kartik\grid\GridView::class,
[
'headerContainer' => null,
'tableOptions' => ['class' => 'table table-nowrap'],
'bordered' => false,
'striped' => false, // alternating line colors
'condensed' => false, // condense the height of the lines
'responsive' => true, // true, then uses http://getbootstrap.com/css/#tables-responsive
'responsiveWrap' => true, // group areas when stacked on smaller screen
'hover' => true, // higlight on hover
'headerContainer' => null, //remove header css
],
);