controlaltdelete/swatches-sku
最新稳定版本:v1.0.0
Composer 安装命令:
composer require controlaltdelete/swatches-sku
包简介
README 文档
README
Description
This module allows you to retrieve the SKU of the current selected SKU.
Usage
Require it in your component:
define([ 'uiComponent', 'ControlAltDelete_SwatchesSku/js/model/selected-product-sku', ], function ( Component, sku ) { 'use strict'; return Component.extend({ sku: sku }); });
And then in your HTML:
<!-- Output the selected SKU --> <span data-bind="text: sku"></span>
But you can also use it with computed observables:
var result = ko.computed( function () { return 'The selected SKU is ' + sku(); });
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Licence
OSL - Open Software Licence 3.0
Copyright
统计信息
- 总下载量: 184
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-01-25