Download the PHP package seoul-commerce/magento2-alpinejs-collapse without Composer
On this page you can find all versions of the php package seoul-commerce/magento2-alpinejs-collapse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seoul-commerce/magento2-alpinejs-collapse
More information about seoul-commerce/magento2-alpinejs-collapse
Files in seoul-commerce/magento2-alpinejs-collapse
Package magento2-alpinejs-collapse
Short Description Integrate the AlpineJS collapse plugin into Hyvä
License MIT
Informations about the package magento2-alpinejs-collapse
FriendsOfHyva_AlpineJsPersist
This is a Magento module specifically for Hyvä, which adds the AlpineJS persist plugin to Hyvä. This plugin allows you to persist Alpine.js component data between page reloads.
Alpine.js Persist Plugin
The Alpine.js persist plugin is a plugin that allows you to persist Alpine.js component data between page reloads. This plugin can be used to store data associated with Alpine.js components in the browser's local storage or session storage, allowing it to be retrieved and restored when the user returns to the page.
For more information on how to use the AlpineJS persist plugin, please refer to the official Alpine.js documentation.
Example
To use the persist plugin in your Hyvä theme, you can add the $persist
property to your Alpine.js component and specify which data properties should be persisted.
In this Alpine.js example, the count property is initialized with a default value of 0 using the $persist
function, which enables the property to persist its value between page reloads using local storage.
Installation
To install the FriendsOfHyva_AlpineJsPersist module via composer, run the following command:
This module requires Hyvä theme 1.2.0 or higher and AlpineJS v3.
Using AlpineJS persist to save Magewire component data
See more details here.
Note
This module is made specifically for Hyvä and doesn't work with native Magento.
For more information on Hyvä, please visit the official Hyvä website.
Copyright & License
Copyright (c) 2023 Friends of Hyvä
The module is released under the MIT.
All versions of magento2-alpinejs-collapse with dependencies
magento/magento-composer-installer Version *
hyva-themes/magento2-theme-module Version ^1.2