Documentation
A no-code solution that seamlessly integrates filtering and pagination into your Webflow, Wized, and Xano projects. By simply adding attributes to your Webflow filters and configuring requests and elements in Wized, you can set up a fully functional system in minutesβsaving you hours of development time.
β οΈ Note:
- This solution is designed exclusively for Xano as the backend.
Quick Links
Supported Filter Types
- Checkbox β Allow users to select multiple options.
- Radio Select β Enable single-option selection.
- Select β Dropdown-based selection.
- Select Range β Filter by range.
- Sort β Arrange results based on predefined criteria.
- Infinite Pagination β Seamless content loading as users scroll.
- Search β Keyword-based filtering.
- Chips β Visual filter tags for quick selection.
- Reset All Filters β Clear all active filters at once.
- Reset Individual Filters β Remove specific filters without affecting others.
Features
- Custom Filter Triggers β Define how and when filters are applied.
- Flexible Styling Options β Easily customise the look and feel to match your design.
- Configurable Behaviours β Adjust filter logic to suit different use cases.
- Event-Based Architecture β Filters and pagination respond dynamically to user actions.
- Optimised Performance β Efficient updates with minimal page reloads.
- Debounced Filter Updates β Prevent unnecessary requests for a smoother experience.
- State Management Built-in β Filters stay in sync without extra setup.
- Seamless Infinite Scroll β Load more content automatically as users scroll.
Get Started
To use Wized Filter and Pagination, include the CDN link in the <head>
tag of your page:
1<!-- WIZED FILTER AND PAGINATION BY AONNOY-->
2<script async type="module" src="https://cdn.jsdelivr.net/npm/wized-filter-and-pagination@1/dist/index.min.js"></script>
Setup
Add Attribute to the Form Element that contains the filters


Create Infinite Pagination and its attributes list
This feature enables infinite scrolling, where more content loads dynamically as the user scrolls. To implement infinite pagination correctly, follow these key setup steps:
π¨ Important Setup Requirements
- Create Two Wized Requests:
- You need two Wized requests responsible for fetching and rendering paginated content:
- First Request: Executes on page load, fetches initial data, and stores it in a Wized variable. Your filter content should be rendered from this variable.
- Second Request (Clone of the First): This request is triggered by the pagination element. When it finishes, the script will append the newly fetched data to the existing Wized variable, ensuring smooth content loading.
- You need two Wized requests responsible for fetching and rendering paginated content:
- Create Two Wized Variables for Pagination Control:
- Current Page Variable: Stores the number of the current page.
- Next Page Variable: Stores the number of the next page.
- Both variables must be updated whenever either of the two Wized requests is executed.
- Pagination Stops Automatically:
- The pagination will stop functioning when the Wized variable holding the next page number becomes
null
, indicating that there are no more pages to fetch.
- The pagination will stop functioning when the Wized variable holding the next page number becomes
- The following attributes should be applied to a div block with no styling. Additionally, ensure this div is positioned below the filter item content.


null
.w-filter-result-variable
.Create Checkbox Filter and its attributes list
- This filter is ideal for allowing users to select multiple options within a category.
- You can create multiple checkbox filters as needed. Ensure that attributes with unique values are distinct to prevent conflicts.
- Attributes should be applied to the checkbox wrapper.
- Checkboxes can be static or dynamically generated. Follow the attribute table below for setup details.


wized
w-filter-checkbox-variable
w-filter-checkbox-request
w-filter-checkbox-category
w-filter-pagination-current-variable
w-filter-request
β
Attributes for Checkbox Label


w-filter-checkbox-label
wized
Create Radio Select Filter and its attributes list
- This filter is ideal for allowing users to select only one option from a predefined set.
- You can create multiple radio selects as needed. Ensure that attributes with unique values are distinct to prevent conflicts.
- Attributes should be applied to the radio select wrapper.
- Radio Selects can be static or dynamically generated. Follow the attribute table below for setup details.


wized
w-filter-radio-variable
w-filter-radio-request
w-filter-radio-category
w-filter-pagination-current-variable
w-filter-request
β
Attributes for Radio Select Label


w-filter-radio-label
wized
Create Select Filter and its attributes list
- This filter is ideal for providing users with a dropdown menu to select a single option from a list.
- You can create multiple select filters as needed. Ensure that attribute values are unique to prevent conflicts.
- Attributes should be applied directly to the
<select>
element. - The select filter can be static or dynamically loaded. Follow the attribute table below for setup details.


wized
w-filter-select-variable
w-filter-select-request
w-filter-select-category
w-filter-pagination-current-variable
w-filter-request
β
If your select filter needs to dynamically load options, follow these additional steps:
- Add the attributes mentioned above to your select filter.
- Apply a combo class to hide the select filter (as it will be populated dynamically).
- Create a div block containing two text elements inside it.
- Apply the following attributes to the div block:
- You will need to ensure that this div block is placed close to the select filter especially if they share the same w-filter-select-category value
w-filter-select-category
w-filter-select-option
β
One of the text elements in the div block will need to have the following attributes:
wized
w-filter-select-option
β
The other text element in the div block will need to have the following attributes:
wized
w-filter-select-option
Create Select Range Filter and its attributes list
- This filter allows users to select a range using two dropdowns (e.g., a "FROM" and "TO" value).
- You can create multiple select range filters as needed. Ensure that each filter has unique attribute values to prevent conflicts.
- Attributes must be applied directly to each
<select>
element. - The select range filter can be static or dynamically loaded.
- The setup is similar to the standard Select Filter, but with separate attributes for "FROM" and "TO" dropdowns.
β
Attributes for "FROM" Select Range


wized
w-filter-select-range-from-variable
w-filter-select-range-category
w-filter-request
w-filter-select-range-request
w-filter-pagination-current-variable
β
Attributes for "TO" Select Range


wized
w-filter-select-range-to-variable
w-filter-select-range-category
w-filter-request
w-filter-select-range-request
w-filter-pagination-current-variable
β
Dynamically Loading Select Range Filters
If your select range filter needs to dynamically load options, follow these additional steps:
- Add the required attributes to both the FROM and TO select filters.
- Hide the select filters using a combo class, as they will be populated dynamically.
- Create two div blocks, each containing two text elements. These blocks will serve as wrappers for the dynamically loaded options.
- Apply the following attributes to each div block:
- Ensure the div blocks are placed near the select filters, especially if they share the same
w-filter-select-range-category
value.
Attributes for "FROM" Select Range Option Wrapper


w-filter-select-range-category
w-filter-select-range-from-option
β
Attributes for "FROM" Text Elements


wized
w-filter-select-range-from-option
wized
w-filter-select-range-from-value
β
Attributes for "TO" Select Range Option Wrapper


w-filter-select-range-category
w-filter-select-range-to-option
β
Attributes for "TO" Text Elements


wized
w-filter-select-range-to-option
wized
w-filter-select-range-to-value
Create Sort Filter and its attributes list
- This filter allows users to sort content using a select dropdown.
- Multiple sort filters can be used within the same setup.
- Attributes must be applied directly to the
<select>
element. - β οΈ The sort filter currently only supports static options and does not work with dynamically loaded content.


wized
w-filter-sort-variable
w-filter-request
w-filter-pagination-current-variable
w-filter-sort-category
β
Setting Up the Sort Filter Options
Although the Sort Filter is static, it requires a separate div block (option wrapper) to store text elements that define the available sorting options.
Attributes for the Option Wrapper:


w-filter-sort-option
w-filter-sort-category
β
Attributes for Text Elements Inside the Option Wrapper

w-filter-sort-option
w-filter-sort-orderby
w-filter-sort-sortby
Create Chips Filter and its attributes list
- Chips are dynamically generated based on the filters selected by the user.
- To set up chips, you need to create a div block that contains:
- A text element (chip label)
- A link block (chip remove trigger)
- You do not need to manually hide the chip templateβthe script automatically handles its visibility.

β
Attribute for the Chip Template (div block)

w-filter-chip
β
Attribute for the Chip Label

w-filter-chip
β
Attribute for the Chip Remove Button

w-filter-chip
Create Search Filter and its attributes list
- The Search Filter allows users to filter content based on a keyword search.
- It requires a simple input field, where the script automatically detects and filters content based on the text entered.
- The following attributes must be applied to the search input field.


Search Filter Attributes
wized
w-filter-search-variable
w-filter-request
w-filter-pagination-current-variable
Create Reset All and its attributes list
- This feature allows users to reset all active filters with a single click.
- It requires a single link block element, which will act as the reset trigger.
- The following attributes must be applied to the reset link block.


w-filter-reset
w-filter-request
w-filter-pagination-current-variable
Create Single Reset For Filter Category and its attributes list
- This feature allows users to reset a specific filter category without affecting others.
- It requires a single link block element, which will act as the reset trigger.
- β οΈ Important: The reset button must be placed close to the filter group it resets.
- The Single Reset feature is not required for Sort Filters, Search, and Chips Filters.
- The following attributes must be applied to the reset link block.


w-filter-checkbox-reset
w-filter-checkbox-category
attribute)w-filter-radio-reset
w-filter-radio-category
attribute)w-filter-select-reset
w-filter-select-category
attribute)w-filter-select-range-reset
w-filter-select-range-category
attribute)