Skip to content

Your Datepicker is really badly designed [Code Architecture] #59

@DatScreamer

Description

@DatScreamer

Where is the documentation for using custom colors/themes with the datepicker? NON-EXISTENT.

Why does it build the datepicker from javascript when it could just be styled directly using Tailwindcss if the actual datepicker wasn't built by javascript?

Javascript is not for building elements, it's for injecting values into the elements.

This is one of the worst-designed components I've ever seen.

This would be orders of magnitude better if you actually used HTML, Javascript, and Tailwindcss the way they were intended to be used. Meaning start with a template in the actual HTML which contains the full structure and styles of the datepicker (container, buttons, etc incl. weekDays, daysOfMonth), and duplicate the existing HTML-in-html via ID/class the required number of times for the daysOfMonth. Etc. Extrapolate that for all other features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions