react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Add / Delete Rows

Open ghost opened this issue 7 years ago • 12 comments

Hey, I want my table component to have add row / delete rows options. Does the component have these methods.

My goal is that finally I would be able to change my DB according to the changes in the table (insert/ delete/ update {that's by cell editing} )

Thanks, Nir

ghost avatar Oct 22 '19 20:10 ghost

Hey guys, Any ideas, Thx

ghost avatar Oct 27 '19 07:10 ghost

Hi, how exactly you want to delete the rows? Do you want to select one row and then press a button to delete that row? Or you thinking on another way to do that?

Ymbere avatar Oct 27 '19 18:10 Ymbere

Basically yes Select one row or several rows with boolean field and the hit delete button

בתאריך יום א׳, 27 באוק׳ 2019, 20:58, מאת Ymberê Xavier ‏< [email protected]>:

Hi, how exactly you want to delete the rows? Do you want to select one row and then press a button to delete that row? Or you thinking on another way to do that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1134?email_source=notifications&email_token=AJCFI6QBI3XX4GQFI5DR5IDQQXQETA5CNFSM4JDWMBG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECLFKYY#issuecomment-546723171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCFI6WNDY5NYE45IFQ3LX3QQXQETANCNFSM4JDWMBGQ .

ghost avatar Oct 28 '19 07:10 ghost

Hey, So what do u think Is there a way to add rows to the table?

ghost avatar Oct 31 '19 09:10 ghost

@nirkrumer so far we don't support add/delete row feature, but I think you can still implement a add button and adding new data to table. So it's not very necessary to support a native features for adding/delete.

Actually, in legacy react-bootstrap-table, we have these features but so far I don't have too much time to implement, so it's still minor features for me. Anyway, PR is welcome, thanks!

AllenFang avatar Nov 09 '19 06:11 AllenFang

Hey Allen, when you say in legacy react-bootstrap-table, we have these features what do you mean? Have a link for an example for me to see?

Thanks

On Sat, Nov 9, 2019 at 8:16 AM Allen [email protected] wrote:

Closed #1134 https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1134 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1134?email_source=notifications&email_token=AJCFI6TNO46ZBJ3PKOL7MD3QSZITFA5CNFSM4JDWMBG2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOUYAVW3A#event-2785106796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCFI6TWJ4C5KQZAXCCVPP3QSZITFANCNFSM4JDWMBGQ .

--

Nir Krumer

Business Applications Manager

*E-Mail: *[email protected] [email protected]

Mobile: +972 (0)50-8248181

ghost avatar Nov 09 '19 10:11 ghost

@nirkrumer https://allenfang.github.io/react-bootstrap-table/

I highly suggest you don't use this legacy package lol

AllenFang avatar Nov 16 '19 05:11 AllenFang

@AllenFang how would you suggest we go about implementing adding and removing row from the table any code example ?

Graig123git avatar Sep 07 '20 22:09 Graig123git

@AllenFang the documentation would be better if it's include the CRUD operations in the table

junreyd avatar Sep 09 '20 07:09 junreyd

It would be really useful if this could be implemented so that the whole table doesn't have to be rerendered in order to add/delete a row

amitsetty avatar Sep 11 '20 18:09 amitsetty

@nirkrumer https://allenfang.github.io/react-bootstrap-table/

I highly suggest you don't use this legacy package lol

If we install this package, we will can use add/delete?

luizabentivoglio avatar Feb 25 '21 12:02 luizabentivoglio

I agree the react-bootstrap-table2 is a great update but you should include add and delete buttons on rows. This is needed in any implementation. The table saves time. Not having this feature costs time in that it has to be implemented by the developer.

xpjs123 avatar Dec 02 '22 20:12 xpjs123