Skip to content

AB Cron Expression

Visual cron schedule editor: compose/validate cron strings, show human description and next run times.

HTML tag: c-eb4529ea41bd94e55bb95c4d7ef82ca1b

  • cron schedule editor
  • job recurrence configuration
  • validate cron with next run preview
PropTypeDefaultDescription
valueString
timezoneString
supports_secondsBooleanfalse
supports_last_domBooleanfalse
presetStringcustom
disabledBooleanfalse
sizeStringmd
densityStringcomfortable
toneStringneutral
appearanceStringsolid
secString
minString
hourString
domString
monString
dowString
is_validBooleantrue
error_messageString
warning_messageString
configuration_descriptionString
next_occurrences_gmtString
next_occurrences_localString
  • Bind .value to cron string; use part fields (sec, min, hour, dom, mon, dow) when building visually.
  • value-changed on edits; apply on explicit apply; validation-changed for is_valid/error_message.
  • supports_seconds and supports_last_dom gate field options.
  • timezone affects displayed next occurrences.
EventDetail
validation-changedis_valid: Boolean, error_message: String, warning_message: String
value-changedvalue: String, parts: [object Object], is_valid: Boolean, error_message: String, warning_message: String
applyvalue: String, parts: [object Object], is_valid: Boolean, error_message: String, warning_message: String
SignatureDescription
composeFromParts()
applyPreset(presetId: any)
parseToParts()
validateCron(value: any)
validateAndEmit(emitValueChanged: any)
updateConfigurationDescription()
apply()

Do not use ab-input for raw cron strings when this editor is available. Do not treat as a generic text field — validation and presets are built-in.

<c-eb4529ea41bd94e55bb95c4d7ef82ca1b .value=${schedule} .timezone=${'UTC'} @value-changed=${onCron} @validation-changed=${onValid}></c-eb4529ea41bd94e55bb95c4d7ef82ca1b>