Replies: 1 comment
-
Not sure if you figured out the delete yet, but here's how I created a slightly different button (called "Detail")...bolded below. BTW, I'd be interested in seeing your code for creating the fine looking grid...fonts, row heights, heading bold, etc. thanks. new gridjs.Grid({ |
Beta Was this translation helpful? Give feedback.
-
Hello -
I am working on a pretty simple project utilizing python and flask to display a set of events that we need covered for our company. I have got most of it to work including the db lookup, creating new records, updating records by clicking in the cell, etc but I cannot for the life of me figure out a way to add a button to each row to delete the entire record.
I am pretty new to gridjs and spent a bunch of time online and cobbling other code together to make it all work, hopefully someone can point me in the right direction.
All of my data in my column are created on the fly by database lookups, so I am not sure how to go about adding a button to that kind of setup.
In my app:
in my manage_events.html:
I did manage to dynamically create the actual flask URL that I need to delete the row, but I cannot figure out how get Grid to show it as an actual URL instead of just string code:
Beta Was this translation helpful? Give feedback.
All reactions