Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.52k stars 223 forks source link

Added support for custom options to a MultiSelectFilter #1695

Closed johannesMEGABAD closed 2 months ago

johannesMEGABAD commented 2 months ago

⚡ PowerGrid - Pull Request

Welcome and thank you for your interest in contributing to our project!. You must use this template to submit a Pull Request or it will not be accepted.


Motivation

Description

This request allows the user to pass a new function to the filter. test

With this function the user can pass custom options to the filter in order to decide what it can do or not. I added the option "disableOptionAll" which allows the user to control whether or not the filter should display the option "All" like discussed in this thread.

More options and how the filter should react can be added later on.

Related Issue(s): No issue just a discussion.

Documentation

This PR requires Documentation update?

luanfreitasdev commented 2 months ago

Did you submit this for 6.x or 5.x?

Thanks!

johannesMEGABAD commented 2 months ago

Hey! I forked this from Power-Components:6.x to johannesMEGABAD:6.x

So if I read that correctly it is for 6.x