screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!--Vuetify Icon CDN--> <link href="https://cdn.jsdelivr.net/npm/@mdi/font@5.9.55/css/materialdesignicons.min.css" rel="stylesheet"> <!-- Load Vuetify styles --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vuetify@3.1.11/dist/vuetify.min.css"> </head> <body> <div id="app"> <v-app> <v-main> <h3>Vuetify Generate a list of years</h3> <v-select v-model="selectedYear" :items="years" label="Select Year"></v-select> </v-main> </v-app> </div> <!-- Load Vue.js and Vuetify script --> <script src="https://unpkg.com/vue@3.2.21/dist/vue.global.js"></script> <script src="https://cdn.jsdelivr.net/npm/vuetify@3.1.11/dist/vuetify.min.js"></script> <script type="module"> const { createApp } = Vue const { createVuetify } = Vuetify const vuetify = createVuetify() const app = createApp({ data() { return { selectedYear: null, years: [], } }, mounted() { const currentYear = new Date().getFullYear(); for (let year = 2010; year <= currentYear; year++) { this.years.push(year); } }, }).use(vuetify).mount('#app'); </script> </body> </html>