1.0.4 • Published 9 months ago

@carodriguezg/primevue-mandatory v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Project description

Vue directive for avoiding PrimeVue Listbox component to set a null value when an option is already selected.

WARNING: This directive has only been test on Listbox PrimeVue component, but it should work on components which use the updateModel method to update their model.

Nuxt 3 Usage

  1. Create a plugin in nuxt plugins folder.
  2. Add the following code to install the directive:
import PrimeVueMandatory from '@carodriguezg/primevue-mandatory'

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.use(PrimeVueMandatory)
})
  1. Add v-mandatory on the component:
<Listbox v-mandatory :options="your_items" />
  1. Enjoy!
1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago