A lightweight, powerful javascript datetime picker
95
Build a simple event calendar widget that displays an always-visible calendar embedded directly on the page. Users should be able to view upcoming events and select dates to see event details.
The calendar widget should:
@generates
Create a calendar widget component that embeds an always-visible date picker on the page and displays event information for selected dates.
/**
* Initializes the event calendar widget
* @param {string} containerId - The ID of the HTML element to contain the calendar
* @param {Array<Object>} events - Array of event objects with date and description
* @returns {Object} Calendar instance for further manipulation
*/
function initializeCalendar(containerId, events) {
// IMPLEMENTATION HERE
}
module.exports = { initializeCalendar };Provides date picker functionality with multiple display modes and customization options.
Install with Tessl CLI
npx tessl i tessl/npm-flatpickrevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10