vuematerial/vue-material

Add Datepicker placeholder option

EmanuelleViana opened this issue · 1 comments

Datepicker component misses a placeholder option to be showed on the input

What is expected?

A text been showed in the datepicker like common inputs
image

What is actually happening?

Nothing is showed on the initial datepicker input
image

You could try using label.
I believe something like this should work for what you want

<template>
  <div>
    <md-datepicker v-model="selectedDate">
      <label>DD/MM/YYYY</label>
    </md-datepicker>
  </div>
</template>

<script>
  export default {
    name: 'LabeledDatepicker',
    data: () => ({
      selectedDate: null
    })
  }
</script>