websolute/magento-cron-string-validator

This Magento 2 Module add a new cron backend validator

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Language:JavaScript

Type:magento2-module

1.0.2 2021-03-29 15:33 UTC

This package is auto-updated.

Last update: 2024-03-29 04:33:01 UTC


README

How to use

Use it when you create a custom field that will contains a cron expression:

<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>