LightningWeb.JobLive.CronSetupComponent (Lightning v2.14.5-pre1)

View Source

A live component for managing cron setup in a form.

The CronSetupComponent provides an interactive form for configuring cron settings. It includes fields for specifying the frequency, minute, hour, weekday, monthday, and cron expression.

Usage

  1. Include the CronSetupComponent in your live view or template.
  2. Pass the necessary assigns to the component, such as form, on_change, and disabled.
  3. Handle the cron_expression_change event to capture changes in the form inputs.
  4. Use the updated cron_expression in your application logic.

Summary

Functions

build_cron_expression(prev, next)

frequency_field(assigns)

get_cron_data(cron_expression)

hour_field(assigns)

minute_field(assigns)

monthday_field(assigns)

render(assigns)

Attributes

  • id (:string) (required)
  • form (:map) (required)
  • on_change (:any) (required)
  • disabled (:boolean) (required)

time_field(assigns)

weekday_field(assigns)