Customization

The FilterResetButton component can be customized by chaining methods on the make method. Here are some of the methods you can use:

  • setLabel(string $label): Sets the label of the button. The default label is 'Reset'.

  • setRenderer(callable $renderer): Sets the renderer of the button. The default renderer is function () { return view('laragrid::components.filter-reset-button'); }.

  • setAttributes(array $attributes): Sets the HTML attributes of the button. BE CAREFUL when using this method, as it can break the functionality of the button. There is already a default wire:click event handler on the button, so if you override it, the button may not work as expected.

Last updated