Vue-js-cron Docs
Vue v2
Demo
Guide
API
Github
Vue v2
Demo
Guide
API
Github
    • Getting Started - Core
    • Getting Started - Light
    • Theming - Light
    • Getting Started - Ant
    • Getting Started - Element Plus
    • Getting Started - Naive UI
    • Getting Started - PrimeVue
    • Getting Started - Quasar
    • Getting Started - Vuetify
    • Custom Periods
    • Custom Cron Expression
    • Special Values

Theming - Light

Themes

CronLight ships two themes, which are selected with the theme prop.

valuedescription
antdefault theme, inspired by Ant Design Vue
legacythe styles used before the ant theme was introduced
<template>
  <cron-light v-model="value" theme="legacy" />
</template>

Dark mode

Dark mode is activated by adding the dark class to any parent element.

<body class="dark">
  <cron-light v-model="value" />
</body>
<template>
  <div>
    <p class="pb-1">theme: ant (default)</p>
    <CronLight v-model="value" />

    <p class="pb-1 pt-4">theme: legacy</p>
    <CronLight v-model="value" theme="legacy" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: '0 9 * * 1-5',
    }
  },
}
</script>

Use the toggle at the top-right to switch between light and dark mode.

theme: ant (default)

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

theme: legacy

Every
in
every month
on
every day
and
every day of the week
at
every hour
:
every minute
Contributors: Ismoil
Prev
Getting Started - Light
Next
Getting Started - Ant