Git Product home page Git Product logo

directus-extension-month-picker's Introduction

Month Picker

A directus interface extension that allows easy picking of any month in a given year.

screenshot

Description

Select a month in any given year. The selected month will be saved as date field in the database, using the yyyy-MM-dd format. So March 2004 will save 2004-04-01 to the database.

You can also use the "Set To Now" button to pick the current month.

Use the buttons above and below the year to go back (or forward) in time.

The Picker should be mobile friendly and should also be translated well.

The display of the interface has been set to always display as MMMM yyyy ("March 2004"). Let me know if configuration is needed here. The display of the overview can be adjusted as you please. I would recommend MMMM yyyy as well there but that is up to you.

Adding to data model

You can directly add the "Month Picker" from the "Selection" group when creating new fields. Any Datetime field of type date can be updated to use the "Month Picker" as interface option.

Some additional notes

This extension has been inspired upon the official datetime picker that directus ships with. There is actually a monthSelect plugin available for flatpick, the datetimepicker Directus uses under the hood. Support for that has not been added though.

directus-extension-month-picker's People

Contributors

joggienl avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.