Rendering Lists in VueJs

A demo of rendering lists in VueJs using the v-for directive - http://coligo.io

by Jason Land

HTML

<script src="https://moment.github.io/luxon/global/luxon.js"></script>
<script src="https://unpkg.com/vue-datetime"></script>
<link rel="stylesheet" href="https://unpkg.com/vue-datetime/dist/vue-datetime.css">
<script src="https://unpkg.com/weekstart/dist/min/main.js"></script>
<div id="app">
  <datetime
    type="datetime"
    v-model="datetime"
    class="theme-red"
    input-class="input"
    type="datetime"
    :week-start="7"
    use12-hour
    auto></datetime>
 
  <pre><code>{{ datetime }}</code></pre>
</div>

CSS

.theme-red .vdatetime-popup__header,
  .theme-red .vdatetime-calendar__month__day--selected > span > span,
  .theme-red .vdatetime-calendar__month__day--selected:hover > span > span {
    background: #ef5753;
  }

  .theme-red .vdatetime-year-picker__item--selected,
  .theme-red .vdatetime-time-picker__item--selected,
  .theme-red .vdatetime-popup__actions__button {
    color: #ef5753;
  }

JavaScript

var vm = new Vue({
  el: '#app',
  data () {
    return {
      datetime: '2013-01-10T23:02:28.037Z'
    }
  }
});