Home > @vsf-enterprise/bigcommerce-theme > UseUiHelpersInterface

# UseUiHelpersInterface interface

Data and methods returned from the useUiHelpers() composable.

Signature:

export interface UseUiHelpersInterface 

# Properties

Property Type Description
categorySlug ComputedRef<string> Current category slug.

# Methods

Method Description
changeFilters(filters) Updates current URL with filters as query/search param.
changeItemsPerPage(itemsPerPage) Updates current URL with items per page count as query/search param.
changeSorting(sort) Updates current URL with sorting as query/search param.
formatDateString(date, format) Formats date string.
getFacetsFromURL() Gets facets parameters from current URL query/search params.
getFilterFromUrlAsArray(filterFromUrl) Returns filter from query in common format as array.