websolute/magento-cron-string-validator

此 Magento 2 模块添加了一个新的 cron 后端验证器

安装: 0

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 5

分支: 0

开放问题: 0

语言:JavaScript

类型:magento2-module

1.0.2 2021-03-29 15:33 UTC

This package is auto-updated.

Last update: 2024-09-29 05:56:28 UTC


README

使用方法

在创建包含 cron 表达式的自定义字段时使用它

<field id="cron_expression" translate="Cronexpression"
                   type="text" sortOrder="100" showInDefault="1" showInWebsite="0" showInStore="0">
                <label>Cron Tab String</label>
                <comment><![CDATA[
<pre>
* * * * *
| | | | |
| | | | +---- Day of the Week   (range: 0-6, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month  (range: 1-31)
| +---------- Hour              (range: 0-23)
+------------ Minute            (range: 0-59)
Example: 0 0 * * * Daily at midnight
</pre>
                ]]></comment>
                <validate>required-entry cronexpression</validate>
            </field>