Skip to content
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

Set default values by DI #1053

Open
strtob opened this issue Jan 23, 2023 · 0 comments
Open

Set default values by DI #1053

strtob opened this issue Jan 23, 2023 · 0 comments

Comments

@strtob
Copy link

strtob commented Jan 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant