question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add methods to batch insert and delete records from Tableview

See original GitHub issue

This is possible with the underlying Tableview.view (Treeview), but this api really needs to be exposed with easy to use methods. See this post for a use case.

class Tableview:
    ...

    def delete_rows(self, indices: List=None):
        """Delete rows specified in indices. If indices is None, then
        ALL tablerows are deleted.
        """
        ...

    def insert_rows(self, index: Union[int, str], rows: List):
        """Insert rows specified by index. If index does not exist then
        the records are appended to the end of the table. You can also
        specify the index 'END' to append records at the end of the
        table.
        ...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
antrraxcommented, Jan 7, 2022

but this api really needs to be exposed

In addition to the possibility of inserting or deleting lines. A method to update rows would be interesting.

For example, The line information would be loaded into an external form. The user changes the necessary data and updates this new data in the indicated row of the treeview.


0reactions
israel-dryercommented, Jan 8, 2022
image
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Delete Functionality to a Table View Row
It's easy and quick to add a default Delete button, as well as “swipe to delete” functionality, to table view rows in iOS....
Read more >
Inserting and Deleting Rows and Sections
Describes how to create and manage table views for applications running iOS.
Read more >
TableView: is it possible to Delete existing rows and insert ...
Yes, it is, but you have to keep the data source array and the table view in sync. If posts represents the data...
Read more >
Add and Delete cells from TableView in Swift 5
First, we have to add the actions for the Add Button and Delete Button. Add Button is used to add the entered string...
Read more >
Add rows to UITableView - Programming With Swift
The easiest way to add a new row to a UITableView would be to add a new item to the data and then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found