Skip to content

Commit bb59113

Browse files
author
Tim Shawver
committed
Add a doc string for the edit cell method, which was missing.
1 parent 4a8940a commit bb59113

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

qgrid/grid.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,20 @@ def _add_row(self, row):
16891689
return index_col_val
16901690

16911691
def edit_cell(self, index, column, value):
1692+
"""
1693+
Edit a cell of the grid, given the index and column of the cell
1694+
to edit, as well as the new value of the cell. Results in a
1695+
``cell_edited`` event being fired.
1696+
1697+
Parameters
1698+
----------
1699+
index : object
1700+
The index of the row containing the cell that is to be edited.
1701+
column : str
1702+
The name of the column containing the cell that is to be edited.
1703+
value : object
1704+
The new value for the cell.
1705+
"""
16921706
old_value = self._df.loc[index, column]
16931707
self._df.loc[index, column] = value
16941708
self._unfiltered_df.loc[index, column] = value

0 commit comments

Comments
 (0)