1.2.3 • Published 6 months ago

stimulus-calendar v1.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Stimulus Calendar

Date and time input stimulus controller.

Demo

Stimulus Calendar Demo

Installation

yarn add stimulus-calendar npm install stimulus-calendar

Usage

// bootstrap.js
import {Application} from '@hotwired/stimulus'
import Calendar from 'src/stimulus-calendar'

const app = Application.start()
app.register('calendar', Calendar)
<div data-controller="calendar" data-calendar-is-disabled-value="false">
    <input type="text" data-calendar-target="dateInput" value="{{ post.date|format_datetime() }}"/>
</div>

Config

  • data-calendar-is-disabled-value="true" - disables the input to select a year, month, day, hour and minute.

Themes

  • data-calendar-theme-value="dark"
  • data-calendar-theme-value="light"
  • data-calendar-theme-value="default" (crazy, but this one is default)
1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.9

6 months ago

1.1.8

6 months ago

1.1.7

6 months ago

1.1.6

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago