Skip to content

Year Selection Method #2875

Closed Answered by Eonasdan
mrdo23 asked this question in Q&A
Nov 9, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Yup. Then you want the viewMode option. The previous link was to the wrong place in the docs.

You can do

new tempusDominus.TempusDominus(document.getElementById('datetimepicker1'),
  {
    display: {
        viewMode: 'decade' //or 'year'
    }
}

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@mrdo23
Comment options

@Eonasdan
Comment options

Answer selected by Eonasdan
Comment options

You must be logged in to vote
4 replies
@Eonasdan
Comment options

@mrdo23
Comment options

@Eonasdan
Comment options

@mrdo23
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants