eolant / vuetify-toast-snackbar

Basic Vue toast service that uses Vuetify Snackbar component.
MIT License
127 stars 36 forks source link

[Feature Request] Option to add custom attributes #32

Open brenoassp opened 4 years ago

brenoassp commented 4 years ago

Problem to solve

I need to get the component in my end-to-end tests. The current solution is to get it by the vts CSS class, but the the ideal is to get it by the attribute data-cy.

Proposed solution

Add a prop attrs that will receive an object and use v-bind with this prop in the snackbar component . Each key of the attrs object will be the name of the attribute being created.