cron-vuetify
Props
Name | Type | Default | Description |
---|---|---|---|
model-value |
|
| the current cron expression |
fields |
|
| each field defines on position of the cron expression |
periods |
|
| the |
locale |
|
| |
custom-locale |
| ||
chip-props |
|
| v-chip properties |
Types
type Field = {
id: string,
items: Array<{
text: string
alt: string
value: string
}>
}
type Period = {
id: string,
value: string[]
}
// strings are nested by periodId -> fieldId -> cronType -> position
// '*' can be used as a wildcard
// cronType = empty | value | range | everyX | *
// position = prefix | text | suffix | *
type Locale = {
'{periodId}'?: {
'{position}'?: string // prefix/text/suffix of period selection
'{fieldId}'?: {
'{cronType}'?: {
'{positon}'?: string // prefix/text/suffix of field
}
}
}
}
Events
Name | Description |
---|---|
update:model-value | emitted when the cron expression changed |
error | emitted when the cron expression is invalid |