removed unused code
This commit is contained in:
@@ -3,16 +3,6 @@ from nicegui import ui
|
||||
|
||||
class aggridx(ui.aggrid):
|
||||
|
||||
# #TODO: this should be done in the constructor via a keyword argument switch
|
||||
# #TODO: this would need the from_pandas/from_polars classmethods to pass through that switch
|
||||
# def setup_sync_edits(self):
|
||||
# """
|
||||
# automatically sync data to the server after edits
|
||||
# this operation maintains the current view on the data
|
||||
# """
|
||||
# self.on("cellValueChanged", self.set_cell_server)
|
||||
|
||||
|
||||
def set_cell(self, row_id, col_id, new_val):
|
||||
row_index = self.row_id_to_index(row_id)
|
||||
self.set_cell_server(row_index, col_id, new_val)
|
||||
@@ -30,20 +20,6 @@ class aggridx(ui.aggrid):
|
||||
self.run_row_method(row_id, "setDataValue", col_id, new_val)
|
||||
|
||||
|
||||
# def set_row_server_from_event(self, evt):
|
||||
# index = evt.args["rowIndex"]
|
||||
# data = evt.args["data"]
|
||||
# self.set_row_server(index, data)
|
||||
|
||||
# def set_row_server(self, index, data):
|
||||
# """
|
||||
# overwrite row at index with data
|
||||
# this operation maintains the current view on the data
|
||||
# """
|
||||
# with self.props.suspend_updates():
|
||||
# self.options["rowData"][index] = data
|
||||
|
||||
|
||||
def set_row(self, row_id, row):
|
||||
"""
|
||||
write row to data at provided row_id and
|
||||
|
||||
Reference in New Issue
Block a user