AB Cron Expression
Visual cron schedule editor: compose/validate cron strings, show human description and next run times.
HTML tag: c-eb4529ea41bd94e55bb95c4d7ef82ca1b
When to use
Section titled “When to use”- cron schedule editor
- job recurrence configuration
- validate cron with next run preview
| Prop | Type | Default | Description |
|---|---|---|---|
value | String | ||
timezone | String | ||
supports_seconds | Boolean | false | |
supports_last_dom | Boolean | false | |
preset | String | custom | |
disabled | Boolean | false | |
size | String | md | |
density | String | comfortable | |
tone | String | neutral | |
appearance | String | solid | |
sec | String | ||
min | String | ||
hour | String | ||
dom | String | ||
mon | String | ||
dow | String | ||
is_valid | Boolean | true | |
error_message | String | ||
warning_message | String | ||
configuration_description | String | ||
next_occurrences_gmt | String | ||
next_occurrences_local | String |
- 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.
Events
Section titled “Events”| Event | Detail |
|---|---|
validation-changed | is_valid: Boolean, error_message: String, warning_message: String |
value-changed | value: String, parts: [object Object], is_valid: Boolean, error_message: String, warning_message: String |
apply | value: String, parts: [object Object], is_valid: Boolean, error_message: String, warning_message: String |
Methods
Section titled “Methods”| Signature | Description |
|---|---|
composeFromParts() | |
applyPreset(presetId: any) | |
parseToParts() | |
validateCron(value: any) | |
validateAndEmit(emitValueChanged: any) | |
updateConfigurationDescription() | |
apply() |
What to avoid
Section titled “What to avoid”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.
Example
Section titled “Example”<c-eb4529ea41bd94e55bb95c4d7ef82ca1b .value=${schedule} .timezone=${'UTC'} @value-changed=${onCron} @validation-changed=${onValid}></c-eb4529ea41bd94e55bb95c4d7ef82ca1b>