Unix cron

There is ReUnixCron component to work with unix cron format.

Form control

The cron component works as a simple form control.

Cron Value: 0,1,2 2/4 6/2 ? 2-7 SUN,MON 2019/1

Active tab

Use activeTab prop to manually activate tab you want.
onTabChange prop allows you to listen tabs activation.
Unix cron supports next tabs: Tab.MINUTES, Tab.HOURS, Tab.MONTH, Tab.DAY.

Tabs:

Disabled state

Use disabled prop to control component's state.

Disabled: false

Years managing

Use renderYearsFrom and renderYearsTo props to specify start and end years.
renderYearsFrom takes 2019 and renderYearsTo takes 2098 as values by default.

Unix cron doesn't support years.

Tabs managing

Use tabs prop to pass tabs you want to show.
The order of the tabs depends on the order of the tab list you specify.

Available quartz values:
Tab.SECONDS, Tab.MINUTES, Tab.HOURS, Tab.DAY, Tab.MONTH, Tab.YEAR

Available unix values:
Tab.MINUTES, Tab.HOURS, Tab.DAY, Tab.MONTH

Visible tabs:

How to translate the cron component?

Pass localization object to localization prop to have translated texts.
See this example of the translation of the "Seconds" tab into Ukrainian.

Tabs visibility

Use hideTabs prop to hide tab buttons.

Highlight elements

Let's highlight "Specific second" section and options "1" and "20"

Vertical tabs

Let's make a vertical tabs