Questions tagged [primereact]
Use this tag for questions about PrimeReact, a collection of UI Components for React.js. Questions tagged [primereact] should also be tagged [reactjs], but NOT [primefaces].
primereact
364
questions
0
votes
0
answers
13
views
It's possible to use Primereact components inside a library?
We have an application using Primereact Components to create more complex widget. Now we want to use this widget inside other application by moving them inside a library.
My simple attempt doesn't ...
0
votes
0
answers
7
views
What is the method using PrimeReact for determining which row an expandedRow button is within?
Using PrimeReact's DataTable: https://primereact.org/datatable/
Using the expandedRows functionality available in the component, you can retrieve the the row within the expansion (or in the main table)...
0
votes
0
answers
8
views
Is there a way to create vertical header for table in PrimeReact library?
I want the headers in my table to be displayed vertically along the left side of the table instead of the top.
I’ve looked through the PrimeReact documentation and haven’t found a clear solution for ...
0
votes
0
answers
30
views
Next.js Typescript PrimeReact FileUpload preparation
right now I'm working with Next.js and Typescript in a little project of mine.
For doing a FileUpload I'm using PrimeReact and the module FileUpload.
To make it work, I searched for a tutorial and ...
0
votes
2
answers
48
views
Date Sorting with Prime React
I'm having issues sorting a datatable with prime react on the Date column.
Here is my code
<Column
field="Date"
header="Date"
sortable={true}
body={(rowData: any)...
0
votes
0
answers
20
views
How can I increase the width of the Password PrimeReact component
I'm using PrimeReact to do my front-end components and i can't change the width in the password component, but in the TextInput component is working.
Code:
'use client'
import CPFInput from "@/...
2
votes
1
answer
20
views
PrimeReact AccordionTab Not Rendering When Wrapped in Custom Component
I'm facing an issue where my custom FilterAccordionTab component, which extends PrimeReact's (V8) AccordionTab, is not rendering its content. However, when I directly use PrimeReact's AccordionTab ...
1
vote
1
answer
50
views
radiobutton appears twice primereact datatable reactjs
Working on primereact datatable checkboxes and radiobuttons, in few environments we deployed the applciation, we can see the radio button or checkboxes appears twice just like below:
I can see some ...
1
vote
2
answers
30
views
How to reference .this from within an instance of react interface?
I'm using a primereact component, whose props include a function, and I want to use one of the other props in this function. The overall scheme of things looks like this:
interface Props {
label?: ...
0
votes
0
answers
19
views
Does PrimeReact's Editor support highlight.js?
I'm using PrimeReact's Editor component and trying to add syntax highlighting to it. It is based on the Quill library so I tried to use highlight.js lib as the Quill's documentation says:
import hljs ...
1
vote
0
answers
43
views
Unable to set column width dynamatically in PrimeReact data-table
I have created SPFx with React solution. I have used "primereact": "^9.4.0" version.
I need to set the column width dynamically in the Prime React data-table column.
I have added ...
0
votes
1
answer
32
views
Objects are not valid as a React child (PrimeReact)
I am having a array of data which is having multiple objects. I want to print the values inside the table using PrimeReact Table.
But when I am passing the data inside value field of DataTable I am ...
2
votes
1
answer
57
views
prime react - How can I make newly added rows instantly editable?
I'm using prime react table to render dynamic data in react. I built my component with the help of the datatable docs.
When I click the add row button, I would like that the new added row to be ...
0
votes
0
answers
20
views
Using Material Design 3 (You) theme with PrimeReact?
now I use PrimeReact in my Next.js project and use theme of stylish of this PrimeReact components, as Lara, MD, MD-compat. But only it themes is preseted in PrimeReact. PrimeReact don`t have theme for ...
1
vote
0
answers
37
views
How can I mark a checkbox option from TreeSelect component with the selection of another option from the same dropdown?
everyone!
I'm using the TreeSelect component with checkboxes from PrimeReact 7.2.1. I want to implement the following behaviour: When I click on option Cost of Goods Sold to External Customer (see ...