ElementorexCms.Blocks.Filters (ElementorexCms v0.2.0)

Copy Markdown View Source

Filters: a form with which visitors search, filter and order a loop grid of the page (Loop grid, ElementorexCms.Blocks.Loop).

Its fields are blocks: Search box, Choice filter (a dropdown, radio buttons, checkboxes or buttons with the values of a field), Range filter, Toggle filter and Sort, next to headings, text or blocks of your own (see ElementorexCms.Filters to write them). It applies on every change or with a button, and can have a button to clear the filters.

The form sends the filters in the query string (?catalog[category]=Shoes): without JavaScript the page reloads with them; with the runtime of the site only the loop grid is replaced. Its target is a loop grid of the same document (the first one when none is chosen).

Summary

Functions

Palette and editor metadata of the block.

Props of the block, in declaration order.

Callback implementation for ElementorexCms.Block.render/1.

Type stored in documents for this block.

Functions

default_children()

Callback implementation for ElementorexCms.Block.default_children/0.

meta()

Palette and editor metadata of the block.

props()

Props of the block, in declaration order.

render(assigns)

Callback implementation for ElementorexCms.Block.render/1.

type()

Type stored in documents for this block.