承接 seoul-commerce/magento2-alpinejs-collapse 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seoul-commerce/magento2-alpinejs-collapse

最新稳定版本:1.0.0

Composer 安装命令:

composer require seoul-commerce/magento2-alpinejs-collapse

包简介

Integrate the AlpineJS collapse plugin into Hyvä

README 文档

README

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.

<div x-data="{ count: $persist(0) }">
    <button x-on:click="count++">Increment</button>
    <span x-text="count"></span>
</div>

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:

composer require SeoulCommerce/magento2-alpinejs-collapse

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.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 2
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固