Download the PHP package alenadashko/filament-dropdown-checkbox-list without Composer

On this page you can find all versions of the php package alenadashko/filament-dropdown-checkbox-list. 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 filament-dropdown-checkbox-list

Filament Dropdown Checkbox List

A searchable dropdown CheckboxList component for Filament v3.

Wraps a standard CheckboxList inside a dropdown trigger with badge-style selected value display, server-side search support, and persistent selection state.

Features

Requirements

Installation

Usage

Client-side search (simple)

Options are loaded once, filtering happens in the browser:

Server-side search

Options are loaded from a callback on each search query. Use this for large datasets:

selectedOptionLabelsUsing is required when using searchUsing — it fetches labels for already-selected values so they remain visible when the search query changes.

Grouped options

Render options split into groups. Each group has its own checkbox that selects or deselects all of its child options at once (with an indeterminate state when only some children are selected):

The state is still a flat array of the selected child values (e.g. ['users.view', 'posts.create']) — the group checkbox is only a UI control. Search matches both child labels and group labels (typing a group name reveals the whole group). Grouped options are intended for the default client-side mode and ignore optionsLimit.

Nested groups

Groups can be nested to any depth. A node whose value is an array is a (sub)group; a node whose value is a scalar is a selectable option. Every group, at every level, gets its own checkbox that toggles all of its descendant options and its own collapse toggle (collapsing a parent hides the whole subtree):

Search matches leaf labels as well as any ancestor group/subgroup name, and reveals the matching branch.

Groups are collapsible: clicking a group's title (or its chevron) toggles its child list, while the group checkbox keeps toggling the selection. An active search query temporarily expands every matching group. To render groups collapsed initially:

Server-side searched groups

For large, database-backed grouped datasets, use searchGroupedOptionsUsing(). The callback receives the current $search string and returns the grouped structure on each query (filtering happens on the server):

As with flat server-side search, selectedOptionLabelsUsing() keeps labels for already-selected values that fall outside the current search results.

Using in table filters

Inside a table filter form, call ->live() so the table re-queries immediately when the selection changes. Without it, the component's state is only synced into Livewire's data bag and the filter won't apply until the next request (e.g. a page reload):

Options limit

Prevents rendering too many options at once (default: 50):

Isolated search state (optional)

By default the component stores search state in a Livewire property named {statePath}_search. If your Livewire component uses table filters and you want to prevent the search from interfering with them, add the HasDropdownSearch trait:

This stores search state in a dedicated filterSearches array instead.

Publishing assets

Publish views to customise the template:

Publish translations:

Adding translations

After publishing, add a new language file at:

License

MIT


All versions of filament-dropdown-checkbox-list with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0 || ^4.0 || ^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 alenadashko/filament-dropdown-checkbox-list contains the following files

Loading the files please wait ...