Download the PHP package outl1ne/nova-detached-filters without Composer

On this page you can find all versions of the php package outl1ne/nova-detached-filters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-detached-filters

Nova Detached Filters

Latest Version on Packagist Total Downloads

This Laravel Nova package allows you to place filters in Nova cards detached from the filter dropdown.

Features

Screenshots

Installation

Install the package in a Laravel Nova project via Composer:

Usage

Pass the filters you wish to detach from the filter menu and show on a card to NovaDetachedFilters class.

HasDetachedFilters

If you only wish to show some filters on DetachedFilters card, you must use HasDetachedFilters trait.

Customization

Widths

You can define the width of the filter using withMeta(). To see available width options, check out Tailwind width classes

Define the width of the card if you wish to have multiple filter cards side-by-side. Width classes should be passed without w- in front of it.

Resetting filter values

If you have bigger filters that take longer to clear manually, you can define withReset in filters metadata, that will render a button to easily clear the filters value without affecting other filters.

If you want to clear all filters, you can call withReset() on NovaDetachedFilters class. This will render a button on the top-left corner that will clear all filter values.

Storing filter state

When you are working with multiple resources and large group of filters, assigning them every time you navigate is a hassle. You can call persistFilters() function on NovaDetachedFilters that will render a lock button top-right corner of the card. Upon clicking the button, the lock will turn green stating that current filters are saved to localStorage.

Argument Default Description
persitFilters true Defines whether persist filters button should be shown.
isPersistingDefault false Optionally define whether filters should be persisted by default

Collapsing card

If you want to allow collapsing filter card you can call withToggle() onNovaDetachedFilters. By default, this is false.

Columns

When working with large boolean filters or pill filters that are the height of multiple regular filters, you can wrap filters inside DetachedFiltersColumn to easily wrap them in columns.

DetachedFilterColumn class takes two arguments $filters and $width. Width of the column will default to w-auto if not passed.

Example of this can be seen in Screenshots section

Demo

You can preview the application via workbench by running the following commands on your local machine. This will assume you have installed the required software on your pc.

Credits

License

Nova Detached Filters is open-sourced software licensed under the MIT license.


All versions of nova-detached-filters with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
laravel/nova Version ~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package outl1ne/nova-detached-filters contains the following files

Loading the files please wait ....