# Getting Started

The fastest way to get started, is to install one of the prebuilt components. For now vue-js-cron provides the following prebuilt components:

If you would like to use a different UI framework, follow the quick start guide on how to use the renderless component.

# CronLight

# Installation

Open up a terminal and run the following command:

yarn add @vue-js-cron/light@^1.0.5

or

npm install @vue-js-cron/light@^1.0.5

# Usage

Then you need to register vue-js-cron/light with Vue.use()

import cronLight from '@vue-js-cron/light'
import '@vue-js-cron/light/dist/light.css'
Vue.use(cronLight)

Now you can use the component CronLight.


CronLight example
Every
Year
in
Dec
on
24
and
every day of the week
at
12,19
:
30
cron expression: 30 12,19 24 12 *

# API

# CronVuetify

# Installation

Open up a terminal and run the following command:

yarn add @vue-js-cron/vuetify@^2.1.0

or

npm install @vue-js-cron/vuetify@^2.1.0

# Usage

Then you need to register vue-js-cron/vuetify with Vue.use()

import cronVuetify from '@vue-js-cron/vuetify'
import '@vue-js-cron/vuetify/dist/vuetify.css'
Vue.use(cronVuetify)

Now you can use the component CronVuetify.


CronVuetify example
Every
Year
in
every month
on
every day
and
every day of the week
at
every hour
:
every minute

# API

# Renderless

This guide will explain how to use the renderless component of vue-js-cron. In this example Vuetify (opens new window) will be used to render the component, but you should be able to follow along using any UI framework.

# Installation

First open up a terminal and run the following command:

yarn add @vue-js-cron/core@^2.1.2

or

npm install @vue-js-cron/core@^2.1.2

# Usage

Then you need to register vue-js-cron/core with Vue.use()

import cronCore from '@vue-js-cron/core'
Vue.use(cronCore)

Now you can use the component CronCore. The default scoped slot (opens new window) of CronCore provides the following props:

  • fields - each field corresponds to one position in the cron expression. Default fields: month, day, day of week, hour and minute.
  • period - defines which fields are visible
  • error - error message

CronCore example
Every
in
on
and
at
:

# API