Editable row with save & cancel buttons

UI Components for React
Post Reply
randore
Posts: 4
Joined: 30 Jul 2018, 15:12

30 Jul 2018, 15:17

Hi,

I just searched for prime editable row and found out that this feature exists in .jsf but not available in ReactPrime.

Is there any example code available to make the complete row editable and at the same time when I click "Add row" should add a new editable row on top of rows instead of modal pop (existing) .

Any help would be greatly appreciated.


Thank you.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

31 Jul 2018, 16:51

PrimeFaces has it;

https://www.primefaces.org/showcase/ui/ ... edit.xhtml

And we'll do it for PrimeReact as well.

randore
Posts: 4
Joined: 30 Jul 2018, 15:12

03 Aug 2018, 09:17

Thanks for replying,

I have one more question, can you please help.

1. https://www.npmjs.com/package/primeicons - how to use these icons in react app.
I have imported css files and installed primeicons as per getting started guide.

And also usage is

Code: Select all

<Column icon="fa fa-pencil" />
but it's not working. What am I doing wrong?


2. For Global filters, is it possible to filter rows based on one column?

examples columns: Id, numbers, names, roles.

where I want to filter based on ID column.


-----------------------
Thanks in advance

randore
Posts: 4
Joined: 30 Jul 2018, 15:12

03 Aug 2018, 09:39

How to use community themes in PrimeReact.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Aug 2018, 21:17

1) Does the following work?

Code: Select all

<i className="pi pi-pencil" />
If so then it works.

2) No, currently it filters them all, but you may create a request.

Please see get started page for theme usage;

https://www.primefaces.org/primereact/#/setup

For community themes, a big change is coming by the way, Nova Theme Family will replace them all;

https://www.primefaces.org/primeng-6-1-0-rc1-nova/

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests