textual icon indicating copy to clipboard operation
textual copied to clipboard

DataTable `clear` is missing

Open asyd opened this issue 2 years ago • 1 comments

DataTable doc refers to a clear() method, but doesn't exists:

>>> from textual.widgets import DataTable
>>> test = DataTable()
>>> test.clear()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'DataTable' object has no attribute 'clear'
>>> test.add_row('test')

asyd avatar Nov 17 '22 14:11 asyd

The docs were updated a little prematurely - this'll be part of the next release (which I think will be this weekend, but @willmcgugan can confirm)

darrenburns avatar Nov 17 '22 15:11 darrenburns

0.5.0 added the method DataTable.clear 😃

rodrigogiraoserrao avatar Nov 22 '22 16:11 rodrigogiraoserrao

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

github-actions[bot] avatar Nov 22 '22 16:11 github-actions[bot]