Cron Input Showcase

Example

Cron Expression

Null

Cron Guide

Cron expressions run on UTC time

  • Minute (0 - 59)
  • Hour (0 - 23)
  • Day of the month (1 - 31)
  • Month (1 - 12)
  • Day of the week (0 - 6)

Special characters:

  • Asterisk (*): Represents "every" value (e.g., every hour, every day).
  • Comma (,): Specifies a list of values (e.g., 1,3,5 in the day-of-week field means Monday, Wednesday, and Friday).
  • Dash (-): Specifies a range of values (e.g., 1-5 in the day-of-week field means Monday through Friday).
  • Slash (/): Specifies increments (e.g., */10 in the minute field means "every 10 minutes").

Example No Modal

Cron Expression

Null

Cron Guide

Cron expressions run on UTC time

  • Minute (0 - 59)
  • Hour (0 - 23)
  • Day of the month (1 - 31)
  • Month (1 - 12)
  • Day of the week (0 - 6)

Special characters:

  • Asterisk (*): Represents "every" value (e.g., every hour, every day).
  • Comma (,): Specifies a list of values (e.g., 1,3,5 in the day-of-week field means Monday, Wednesday, and Friday).
  • Dash (-): Specifies a range of values (e.g., 1-5 in the day-of-week field means Monday through Friday).
  • Slash (/): Specifies increments (e.g., */10 in the minute field means "every 10 minutes").

Component Documentation

Component Name

CronInput

Builder Function Name

create_cron_input_manager

Description

provides a popover-based UI for setting a cron expression (minute, hour, day-of-month, month, and day-of-week)

Use like example

Config

PropertyTypeDefaultDescription
valstring

the raw cron expression

labelstring

optional label displayed next to the cron input

is_disabledboolean

false

disables the input if true

is_nullableboolean

true

allows the cron to be null if true

is_compressedboolean

true

if true, sets button styling to compressed

is_popoverboolean

true

if true, opens the cron input in a popover

mlnumber

0

margin-left in rem

mrnumber

0

margin-right in rem

mtnumber

0

margin-top in rem

mbnumber

0

margin-bottom in rem

on_finishfunction

callback triggered when the user clicks 'finish', receives the validated cron

Methods

MethodDescriptionParametersReturns
init

initializes the manager, sets up internal text input, popover, and control buttons

config: object

void
finish_cron

calls on_finish with the current cron value if provided, then closes the popover

No Params

void
set_attributes

updates the manager’s config attributes (label, disabled, etc.)

input: object

void

Returned Properties

PropertyTypeDescription
idstring

unique identifier for this cron input instance

labelstring

optional label displayed next to the input

valstring

cleaned, fully formed cron expression or null

is_nullableboolean

allows the cron to be null if true

descriptionstring

english-like description of the cron schedule

is_disabledboolean

disables the input if true

is_compressedboolean

styles the button in a compressed manner if true

is_validboolean

indicates if the provided cron expression is valid

is_popoverboolean

if true, the cron input is displayed in a popover

mlnumber

margin-left in rem

mrnumber

margin-right in rem

mtnumber

margin-top in rem

mbnumber

margin-bottom in rem

popover_managerobject

popover manager controlling the dropdown panel

popover_toggle_button_managerobject

button manager used to open/close the popover

finish_button_managerobject

button manager that finalizes the selected cron

cron_text_input_managerobject

text input manager for editing the raw cron expression

icon
Sponsored byContibase