Thank you so much! I was able to get it to work by also switching the render property from “auto” to “view”. The only problem that I have now is I cannot stop the button from appearing for each row. The data that populates the table has two columns. One of them has a bit datatype which. In the table, I have set the viewPath property on the column that is populated by the bit data. But I think I want actually be doing is setting the viewPath on the cell instead as @zacht suggests. With that said, I am having difficulty adding the view to the cell. I realize that Tables cannot be changed and a copy will be created. So I am taking my original data and converting it to a PyDataSet then looping through the rows. My plan is to determine which row of the bit column is 1 “true” while looping the rows and once I find one of those rows, I access the same row/column in the table and add a view to it (Please let me know if there is an easier way) . I have tried to adding the view to a cell using table.props.data[rowNum][columnNum].viewPath = “”. Which throws an error. I’ve also tried looking at table.props.rows and table.props.cells but I still can’t seem to get the view to appear “only” where I want it to be. Do you (or anyone else) have any suggestions that I might try? Show Hi, I would like to add a button within a tablepress table. I know I have to add custom css to the plugin options, but I’m stuck (before I got started) as I don’t have any experience. Basically I want to add a button similar to the ones on this page:https://www.leadingcourses.com/blog/top-10-golf-courses-in-the-algarve/ to a new column (far right) in the table press table on this page: https://www.leadingcourses.com/blog/best-golf-resorts-europe/ Ideally the button should be quite small and be on one line. My first problem is that I don’t know the tablepress id as it was mentioned in another post:
Besides that it would be about customizing the look of the button. Hope someone (Tobias?) can help! Thanks in advance, Ruben The page I need help with: [log in to see the link] Viewing 5 replies - 1 through 5 (of 5 total)
|