{"repo":"CodeWithDennis/filament-select-tree","free":true,"listed":false,"github":"https://github.com/CodeWithDennis/filament-select-tree","clone":"git clone https://github.com/CodeWithDennis/filament-select-tree.git","description":"The multi-level select field lets you pick one or multiple options from a list that is neatly organized into different levels.","language":"PHP","stars":329,"topics":["filament","filament-plugin","laravel","tree-structure","field","filamentphp","php","select","select-tree","tree"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Filament Select Tree If you're using Filament 3.x, check out the compatible version of this package here. This package adds a dynamic select tree field to your Laravel / Filament application, allowing you to create interactive hierarchical selection dropdowns based on relationships. It's handy for building selection dropdowns with various customization options. Installation You can install the package via composer: Relationships Use the tree for a BelongsToMany relationship Use the tree for a BelongsTo relationship Usage without relationships Use the tree without relationship Custom Query Customize the parent query Customize the child query Note: when you filter the parent query, any results found by the child query whose parents have been filtered out will be promoted to root nodes by default (to prevent empty result sets). To disable this feature, use the strictNullParentRootNodes() configuration method Methods Set a custom placeholder when no items are selected Enable the selection of groups Customize the label when there are zero search results Display the count of children alongside the group's name Keep the dropdown open at all times Add the list as a static DOM element so that it doesn't overlap content Set nodes as dependent Expand the tree with selected values (only works if field is dependent) Set the parent's null value to -1, allowing you to use -1 as a sentinel value (default = null) All groups will be opened to this level Specify the list's force direction. Opti","default_branch":null,"files":null,"tree":[],"storefront":"/r/CodeWithDennis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CodeWithDennis/filament-select-tree/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}