yii2-grid icon indicating copy to clipboard operation
yii2-grid copied to clipboard

Set default values by DI

Open strtob opened this issue 2 years ago • 0 comments

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
                ],
        );

strtob avatar Jan 23 '23 13:01 strtob