Giter Club home page Giter Club logo

Comments (6)

bhamde avatar bhamde commented on August 12, 2024 1

@darrenfang 'CLEAR' does not cancel what you have entered and keeps the old values, it clears the date/time to null!

from vuetify-datetime-picker.

darrenfang avatar darrenfang commented on August 12, 2024 1

@bhamde See Commit 97f1aa7

from vuetify-datetime-picker.

max3163 avatar max3163 commented on August 12, 2024

Yes, must have option !

+1

from vuetify-datetime-picker.

darrenfang avatar darrenfang commented on August 12, 2024

@bhamde @max3163 Click 'CLEAR' button

from vuetify-datetime-picker.

bhamde avatar bhamde commented on August 12, 2024

Why is that closed? Sorry, I don't think they are the same functionality @darrenfang

from vuetify-datetime-picker.

runtangr avatar runtangr commented on August 12, 2024

@bhamde
you can use actions, override button.
l_62558942_320_1c8301d7acfa2e2469f0790051a198a3

use v-slot, use parent method, it can realize cancel(restore datetime).

<template slot="actions" slot-scope="{ parent }">
<v-btn color="error lighten-1" @click.native="parent.clearHandler">Cancel</v-btn>
<v-btn color="success darken-1" @click="parent.okHandler">Done</v-btn>
</template>

l_62558942_319_0308cd73c13303978334afffd487d523

just a little code. like this.

<v-btn color="grey lighten-1" text @click.native="cancel(parent)">cancel</v-btn>
cancel(parent) {
      parent.init(); // this is restore datetime
      parent.okHandler();
    },

from vuetify-datetime-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.