Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VDateInput): add slot for customizing VDatePicker actions #20857

Closed
wants to merge 1 commit into from

Conversation

yuya2017
Copy link

Description

This PR adds a new slot to the VDateInput component, allowing developers to customize the actions section of the VDatePicker. This enhancement provides greater flexibility in tailoring the date picker to specific application requirements. Resolves #20690.

Markup:

<template>
  <v-app>
    <v-container>
      <v-date-input>
        <template #actions>
          <v-btn text @click="cancel">cancel-custom</v-btn>
          <v-btn text @click="save">save-custom</v-btn>
        </template>
      </v-date-input>
    </v-container>
  </v-app>
</template>

<script>
  export default {
    name: 'Playground',
    setup () {
      return {
        cancel () {
          console.log('cancel')
        },
        save () {
          console.log('save')
        },
      }
    },
  }
</script>

@yuya2017 yuya2017 marked this pull request as ready for review January 11, 2025 14:01
@KaelWD KaelWD closed this in 70deee7 Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] VDateInput - Add a slot to customize the VDatePicker child-components action slot directly
1 participant