vue-datetime icon indicating copy to clipboard operation
vue-datetime copied to clipboard

Enhancement: inline component or custom directive

Open Iworb opened this issue 7 years ago • 1 comments

I'm using Vuetify and this input field looks weird, it stand out of other components. Inline version of this component could be nice OR maybe some directive which opens popup cool aswell.

Iworb avatar Jun 01 '18 09:06 Iworb

Leaving this solution here in case anyone comes across this issue.

In your template:

<v-text-field @click="clickDateABC" v-model="dateval" label="Date"></v-text-field>
<datetime ref="dateABC" hidden v-model="dateval" type="datetime"></datetime>

Then create a method on your controller:

clickDateABC(event) {
  this.$refs.dateABC.open(event);
}

bernhard-steve avatar Jul 07 '20 18:07 bernhard-steve