Table with button in each row
- MrLlama
- Member | 4
Hi guys, could use few tips on how to handle a little problem of mine.
I have a bootstrap-table that has a button in each row.
I would like that on click of the button, it would take the id of the row and
change corresponding value in database. Except i am unsure how would be best to
handle the ton of buttons with nette.
So far I thought about generating the button with hidden input that would have the row id in itself but not completely sure how exactly that would work.
How would you guys implement this?
- MrLlama
- Member | 4
chemix wrote:
Hi @MrLlama can you send a screenshot of your rows.
Sorry for slow response,
https://imgur.com/a/Aylqj2j
Here you go.
- dkorpar
- Member | 135
@MrLlama maybe you can just use some of existing datagrid
components?
https://github.com/…tte/datagrid
has all this already implemented and much more
- MrLlama
- Member | 4
@dkorpar I have tried all kings of nette datagrids. Best one for me would be mesour, but I have been unable to make that one work on nette 3.0, tried learning contributte, and when i finally got it working I found out, that their implementation of treeView is not enough for what i need. I require ability to collapse and expand rows into new tables, not same rows as parent row.