When using finsweet slider component, and having the wized attributes in the CMS items, how compatible is this? Can we get documentation about the scenarios how the slider component can be used with FS load, filter, etc, and additionally with compability with Wized attributes?
Hey @Chad! Finsweet Components and V1 Attributes are not compatible out of the box. However we can use the API to reinitate the components with something like
<script>
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
'cmsload',
(listInstances) => {
const [listInstance] = listInstances;
// The `renderitems` event runs whenever the list renders items after switching pages.
listInstance.on('renderitems', (renderedItems) => {
console.log('do something here when list renders, like restarting the slider component');
window.fsComponents.solutions.slider.restart();
});
},
]);
</script>
1 Like
Is there documentation about using the fsAttributes API? Iād like to understand how the code works
Sure! You can find more info here ā Attributes API