DateTime display() as an option

DateTime display() as an option

Loren MaxwellLoren Maxwell Posts: 462Questions: 112Answers: 10
edited October 15 in DateTime

For the DateTime plugin, display() is available through the api, but an option would be helpful as well.

{
    label: 'Some date field',
    name: 'some_date',
    type: 'datetime',
    opts: {
        display: {
            year: 1982,
            month: 10
        }
    }
},   

or maybe...

{
    label: 'Some date field',
    name: 'some_date',
    type: 'datetime',
    opts: {
        display: [1982, 10]
    }
},   

The display option would probably only take affect if there is no current value or default value set.

Answers

  • allanallan Posts: 65,230Questions: 1Answers: 10,812 Site admin

    Good idea! Added to the list :).

    Allan

Sign In or Register to comment.