A lightweight, powerful javascript datetime picker
95
Build a simple date picker for a monthly budget tracking application that allows users to select months (without specific days) for viewing their budget reports.
The date picker should:
Create a simple HTML page with:
A lightweight datetime picker library that provides month selection capabilities.
@satisfied-by
The following test cases should be implemented:
When running the application:
@generates
/**
* Initializes a month-only date picker on the specified input element
*
* @param {string|HTMLElement} selector - The input element or selector to attach the picker to
* @returns {Object} The flatpickr instance
*/
function initMonthPicker(selector) {
// Implementation here
}
module.exports = { initMonthPicker };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