LocoMotion offers support for the Cally calendar web component styled by DaisyUI.
You must include the Cally script tag or node module in your application for this component to render and function properly.
npm install cally # or yarn add cally# application.js
import "cally";Calendars can be used to select a single date. Use the update option to
pass a CSS selector of a <div> or other element to update.
Note that this uses the onchange event along with getElementById to
provide a very basic change system. You may want to use Stimulus
controllers to handle more complex scenarios.
{ onchange: "document.getElementById('#{@update}').innerHTML = this.value" }You can utilize the change option to change the value of an HTML input
when a date is selected.
Similar to the update option, this uses onchange and getElementById,
but is specialized for updating an input element's value.
{ onchange: "document.getElementById('#{@update}').value = this.value" }To attach a Cally calendar to an input in a popover, use the Cally Input component.
Calendars can also allow selection of a range of dates.
Create virtual credit / debit cards to keep your real info safe.
Get $5 when you sign up — free to start!
Everything you need to grow your business with confidence!
CRM, Lead Generation, Project Management, Contracts, Online Payments, and more!
The ads above are affiliate links to products I regularly use and highly
recommend.
I may receive a commission if you decide to purchase.