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

Filters' width #72

Closed
philipbaginski opened this issue Nov 16, 2023 · 2 comments
Closed

Filters' width #72

philipbaginski opened this issue Nov 16, 2023 · 2 comments

Comments

@philipbaginski
Copy link

In docs :

we can see, that filters have set up width. What is method to archive it?

@milewski
Copy link
Member

I don't understand your question, you wanna have your filters in 2 columns? if so that`s already the default, if you have 2 filters it will by default show like the screenshot above...

but if you want 3 columns for example you could do something like this:

NovaDashboard::make()
  ->addView('Main', fn (View $view) => $view
      ->addWidget(...)
      ->addFilters([...]))
  ->withMeta([ 'columns' => 3 ]),

@philipbaginski
Copy link
Author

I don't understand your question, you wanna have your filters in 2 columns? if so that`s already the default, if you have 2 filters it will by default show like the screenshot above...

but if you want 3 columns for example you could do something like this:

NovaDashboard::make()
  ->addView('Main', fn (View $view) => $view
      ->addWidget(...)
      ->addFilters([...]))
  ->withMeta([ 'columns' => 3 ]),

Thank you :-)

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

2 participants