primevue | Next Generation Vue UI Component Library | Command Line Interface library
kandi X-RAY | primevue Summary
kandi X-RAY | primevue Summary
Next Generation Vue UI Component Library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of primevue
primevue Key Features
primevue Examples and Code Snippets
Community Discussions
Trending Discussions on primevue
QUESTION
I am trying to make a custom dialog popup with PrimeVue < p-dialog >. But I can't seem to get around the CSS that comes with it; I want to use my own and just keep the functionality.
I haven't been able to find any resources online. I know I'm understanding something wrong but I don't know what. Here's the documentation:
https://www.primefaces.org/primevue/#/dialog
This is my Vue code. I added a custom CSS class but it just comes out all wonky. So that's why I feel like I need to get it to ignore all the other code that comes with the PrimeVue library. It's just looking like the other p-dialogs within this file.
...ANSWER
Answered 2022-Mar-29 at 13:34Found this answer in the PrimeVue Discord.
In the styling section of the documentation, it has the built in css classes. I can access these for this specific p-dialog if used in my wrapper class as seen below:
QUESTION
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 now, was to create a ToastService.ts like this:
...ANSWER
Answered 2022-Feb-01 at 21:18Maybe the following solution works for you:
Add a Toast in App.vue and add a watch that checks a message from the store
QUESTION
With the Menubar component, the hamburger menu is automatically displayed when shrinking the browser window. However, upon clicking that button, I want to change the icon from pi-bars to pi-times. Is there a way to do this?
I'm not even sure how to access the button within the code. The example at https://www.primefaces.org/primevue/#/menubar doesn't explain it either.
...ANSWER
Answered 2022-Mar-22 at 02:46One way to do this is with CSS. The menu gets the .p-menubar-mobile-active
class applied when the mobile-mode menu is open, and the icon () is a descendant of the
.p-menubar-button
. Change the icon's ::before
content to \e90b
, which is the character code for pi-times
:
QUESTION
I'm working in Vue 3 Composition and trying to draw a horizontal line across my ChartJS graph using the ChartJS annotation plugin. (https://www.chartjs.org/chartjs-plugin-annotation/latest/guide/types/line.html)
I'm using Primevue Chart component as the implementation of ChartJS.
I have imported import annotationPlugin from 'chartjs-plugin-annotation';
and import Chart from 'primevue/chart';
and made my component like:
ANSWER
Answered 2022-Mar-10 at 20:05We hit a similar problem and needed to make sure we globally register the annotation plugin in our project root.
Without this, the annotation silently fails just as you are describing:
QUESTION
I've run into this issue. There is a feature request for this at the moment. I've provided my workaround in the answer below.
...ANSWER
Answered 2022-Feb-10 at 00:54Anyone looking for alternatives can either add a placeholder value to the Autocomplete with emojis as 'icons'
Option 1QUESTION
In a fresh Laravel 9 installation, the URL processing from Laravel Mix does not work anymore.
npm outputs the following:
...ANSWER
Answered 2022-Feb-22 at 10:55Actually moving the css imports into resources/js/app.js
solves this problem. However, this results in the imported css to be included in the public/js/app.js
, not the public/css/app.css
.
QUESTION
I am very new to Vue and I am trying to set up vue-i18n
and continue to get console warnings
ANSWER
Answered 2022-Jan-26 at 14:09The meaning of this warning message is that you need to specify the flag explicitly in the bundler when you do a production build.
Please refer to the following link for packages provided by vue-i18n for bundlers.
https://vue-i18n.intlify.dev/installation.html#with-a-bundler
One advice to help you out is to use the plugins for each bundler listed in the NOTE section of the above link, and they will configure them properly for you. I recommend that you check them out.
Checkout this issue listed in GitHub forum.
QUESTION
Case: I am using PrimeVue
in a Vue.js
project. In this case I have a dropdown, as a component from PrimeVue
, which uses an array of objects. The dropdown component looks like this:
ANSWER
Answered 2021-Sep-14 at 11:26The answer is: Yes! The description in the documentation of Dropdown | PrimeVue is a bit confusing, at least for me. The problem is, that it isn´t enough to provide a v-model
as I did with v-model="selectedFilter[index].pos"
, I also have to define optionValue
and in my case optionValue="value"
, because the values in filterPositions
have the key value
.
Looks like, if this is set, PrimeVue´s Dropdown is able to check if the v-model
matches the optionValue
. If not, v-model
would be compared to the whole filterPositions
item. For example:
Without optionValue="value"
:
QUESTION
I wrote a vue3 component which uses the VirtualScroller from PrimeVue and I would like to scroll to the end of the scroller each time I'm adding new elements. For that, there is scrollInView method which is defined on the component and documented here
My code looks like this (it's typescript with vue-class-component and single file syntax):
...ANSWER
Answered 2022-Jan-15 at 15:32The only workaround I found is too use $refs like this:
QUESTION
I'm working on a Project with Vue.js.
I have installed npm several times, but it keeps telling me that there are a couple of files that are not included in node_module folder.
Here are the errors I get when I try the npm run serve
:
ANSWER
Answered 2021-Dec-30 at 14:16Let's start with some basic troubleshooting steps.
- Delete your node_modules-folder
- Delete the package-lock.json-file
- Navigate to the folder containing the package.json-file
- Run npm install
Let me know if this solves your problem or not.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install primevue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page