Positioning filters into grid columns
To change the number of columns that filters may occupy, you may use thefiltersFormColumns() method:
Controlling the width of the filters dropdown
To customize the dropdown width, you may use thefiltersFormWidth() method, and specify a width - ExtraSmall, Small, Medium, Large, ExtraLarge, TwoExtraLarge, ThreeExtraLarge, FourExtraLarge, FiveExtraLarge, SixExtraLarge or SevenExtraLarge. By default, the width is ExtraSmall:
Controlling the maximum height of the filters dropdown
To add a maximum height to the filters’ dropdown content, so that they scroll, you may use thefiltersFormMaxHeight() method, passing a CSS length:
Displaying filters in a modal
To render the filters in a modal instead of in a dropdown, you may use:slideOver().
Displaying filters above the table content
To render the filters above the table content instead of in a dropdown, you may use:Allowing filters above the table content to be collapsed
To allow the filters above the table content to be collapsed, you may use:Displaying filters below the table content
To render the filters below the table content instead of in a dropdown, you may use:Displaying filters to the left or right of the table content
To render the filters to the left (before) or right (after) of the table content instead of in a dropdown, you may use:Allowing filters to be collapsible when displayed to the left or right of the table content
To allow the filters to be collapsible when displayed to the left or right of the table content, you may use:Hiding the filter indicators
To hide the active filters indicators above the table, you may usehiddenFilterIndicators():
Customizing the filter form schema
You may customize the form schema of the entire filter form at once, in order to rearrange filters into your desired layout, and use any of the layout components available to forms. To do this, use thefilterFormSchema() method, passing a closure function that receives the array of defined $filters that you can insert:
columns() method to specify that the section should have two columns. We have also used the columnSpanFull() method to specify that the section should span the full width of the filter form, which is also 2 columns wide. We have inserted each filter into the form schema by using the filter’s name as the key in the $filters array.
Displaying the reset action in the footer
By default, the reset action appears in the header of the filters form. You may move it to the footer, next to the apply action, using thefiltersResetActionPosition() method: