Questions tagged [primevue]

Use this tag for questions about PrimeVue, a collection of UI Components for Vue.js. Questions tagged [primevue] should also be tagged [vue.js], but NOT [primefaces].

231 questions
11
votes
2 answers

How to open a static website in localhost but generated with Vite and without running a server?

Note: the example I'm using is available on GitHub repository https://github.com/mary-perret-1986/primevue-poc I created a simple project with Vue.js 3 + Vite + PrimeVue. So far everything works like a charm when I'm developping and if I'm serving…
Natalie Perret
  • 8,013
  • 12
  • 66
  • 129
7
votes
1 answer

Importing and displaying component from another local project in vue 3

I'm trying to create a library (vue3-lib) with vue3 and typescript based on primevue, that will be used in some other projects (like vue3-project). When running the vue3-lib everything works as expected, but when I'm running (npm run serve) the…
Andrei Tudor
  • 121
  • 7
6
votes
1 answer

Applying Primevue theme

Edit: As I was not able to figure this out, I instead dropped Vue3 and went back to Vue2 and switched to Vuetify. I am completely new to Vue and decided to use Vue 3 for project, which is supposed to lead into my master thesis. As there are not very…
6
votes
1 answer

Vue composition API calling child component method

TLDR; In v2, this.$refs does the job but how can I do that in v3 composition api? I am trying to use CustomUpload feature of PrimeVue in Vue3, but that API does not clear the upload files after uploading them and I need to call clear() method of the…
kilkurdu
  • 77
  • 1
  • 8
5
votes
6 answers

How to create reusable toastService with primeVue toast?

I want to know if there's a way to create a reusable scritp/class/service with primevue toast function calls, in such a way that I don't need to call the primevue toast functions directly in every single component. What I've tried to do up until…
Thalys Menezes
  • 345
  • 1
  • 4
  • 17
5
votes
1 answer

Injection "Symbol()" not found error Vuejs

I am using confirmdialog in primevue and get this error: [Vue warn]: injection "Symbol()" not found I have no idea what this error is and how to fix it. Can anyone help me please? Here is my source code const deleteCategory = () => { …
Hieu Le
  • 87
  • 2
  • 7
5
votes
1 answer

How to change primary color on primevue?

I use Primevue on a vue.js project, with the theme Deep Purple that I import this way: import 'primevue/resources/themes/mdc-light-deeppurple/theme.css'; Now I'd just like to modify the primary color set in the theme (#673AB7) by a custom one. How…
hnrd
  • 265
  • 1
  • 4
  • 13
4
votes
1 answer

How to use the PrimeVue i18n integration?

I created a Vue 3 app using the CLI and added PrimeVue to my project. Based on the docs I want to setup the locales. Inside the main.ts file I tried to setup a sample with multiple languages .use(PrimeVue, { locale: { en: { …
user17298649
4
votes
2 answers

Primevue Chart not rendered

Im stuck with rendering Chart from Primevue components. It's based on chart.js library. At this moment I have simple vue component created: