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].

296 questions
0
votes
1 answer

How to use PrimeReact's Button component?

I am trying out the javascript map method whilst building a simple calculator. I am using a list for each row of the calculator and mapping it to a table cell and a prime react button inside it. I am however getting weird results in the browser.…
0
votes
1 answer

React component render dynamic content in tabs from a JSON object

In my React component I am not able to render a dynamic tab from a JSON object. I am able to retrieve the JSON data key and the value array, but I am not able to render it in the UI. I am using PrimeReact UI components.…
Jay
  • 9,189
  • 12
  • 56
  • 96
0
votes
1 answer

How to implement lazy loading in DataTable of PrimeReact

I try to implement the lazy option of the DataTable. In the official example, only the onPage event is being used. But what if I need to use column filters, paging and sorting together? Is this the workflow which I need to develop? client collects…
Korki Korkig
  • 2,736
  • 9
  • 34
  • 51
0
votes
1 answer

Prime React - DataTable - CSV Eexport fails in chrome but is working in IE

I am using Prime React library for implementing it's DataTable feature in an application built using SPFX with react for SharePoint Online - WebPart. In local serve, the csv export feature is working in both IE & Chrome. but when the built files are…
0
votes
1 answer

Primereact Imports not Found

I want to develop a React Js app with the framework Primereact. Now I have the problem that some Imports can't be found. The Import import {Button} from 'primereact/Button' throws the exception: Cannot find file: 'Button.js' does not match the…
gigashark
  • 29
  • 9
0
votes
1 answer

Take url to new tab with primereact button

I'm following the following demo : When a user clicks on Home button,is it possible to take the user to a new tab of browser instead of opening the URL in same tab from where the button is clicked? I'm wondering how to modify this line
Tan
  • 1,433
  • 5
  • 27
  • 47
0
votes
1 answer

Primeract and nextjs webpack config

How can I primereact css import to nextjs I did it according to the nextjs documentation. but it gave the error. I have to install loader.but I'm new to webpack. I dont find how to webpack config. Please produce a solution.
Cuas
  • 1
  • 1
0
votes
1 answer

Use Vertical Steps component from antd with in a ScrollPanel from PrimeReact

I would like to use the Vertical Steps from antd(https://ant.design/components/steps/) within a primeReact ScrollPanel(https://www.primefaces.org/primereact/#/scrollpanel). I would also like to use the "Next" and "Previous" button as shown in the…
user578219
  • 597
  • 2
  • 9
  • 32
0
votes
0 answers

PrimeReact Dropdown asynchronous data options

I'm using the Dropdown in PrimeReact, but seems like it doesn't support to continuously fetch data options from server, I would like to perform something like Is there any way to do like that?
Einsamer
  • 1,069
  • 4
  • 17
  • 34
0
votes
0 answers

Primereact Dropdown with alternative array key format

When I use the Dropdown with the array, but the item is not with format {value, label}, e.g.: {tag, name}, the default value is not selected and the onChange value return the whole object, instead of the tag value. I tried with dataKey="tag" but…
Einsamer
  • 1,069
  • 4
  • 17
  • 34
0
votes
1 answer

Is there any method to change the icon image to an local image in prime react?

I'm trying to change a button icon image to an image on my computer, yet prime react doesn't seem to allow me to do this. I have tried: linking the button to an external style-sheet and changing background image from there. Using an inline style…
JavaHava
  • 189
  • 2
  • 15
0
votes
1 answer

How to add image in primereact datable column

Hi I'm new to Reactjs and primereact https://www.primefaces.org/primereact/#/datatable. to bind the datas in table I have choosen prime react datatable. Now I dont know how to add image tag in datatable. I have tried with some image tag inside the…
0
votes
2 answers

own sortFunction for dataTable

I get an error when calling this.props.fetch() in the mySort method. this.props.mySort collects new data from the backend sorted by the respective column. The error is: Warning: Cannot update during an existing state transition (such as within…
Joey85
  • 1
  • 1
0
votes
1 answer

PrimeFlex Grid rendering Issue

I want to design a page with primereact flexgrid but its not working, code is below... (copied from primereact site) import 'primereact/resources/primereact.min.css'; import 'primeicons/primeicons.css'; and renderGridItem(post) { return ( …
nwzhaider
  • 359
  • 1
  • 3
  • 16
0
votes
1 answer

Dynamic content in Dialog component

Hello I try to make data view with prime react component in Dialog with dynamic photo size content. By default the photo popup with scroll bar and in the centre of screen. How to make it with dynamic size and without scrollbar and on top of the…
Vadim
  • 557
  • 8
  • 21
1 2 3
19
20