LaraGrid
  • LaraGrid
  • Installation
  • Publishable
  • Usage
    • Base Usage
      • Create a Grid
      • Display a Grid
    • Examples
  • Theme
    • Default Theme
    • Customize the Theme
  • Column
    • Description
    • Create a Column
    • Methods
    • Usage
  • Column Group
    • Description
    • Create a ColumnGroup
    • Methods
    • Usage
  • Filter
    • Description
    • Available Filters
    • Usage
    • Custom Builder
    • Custom filter
    • Show filtering and sorting in url
  • Filter Reset Button
    • Description
    • Usage
    • Customization
  • Layout
    • Description
    • Usage
  • PowerJoins in LaraGrid
    • Why do we use it
Powered by GitBook
On this page

Was this helpful?

  1. Filter Reset Button

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.

PreviousUsageNextDescription

Last updated 1 year ago

Was this helpful?