mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a disabled keyword to DataTable
This commit is contained in:
@@ -473,8 +473,9 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
||||
name: str | None = None,
|
||||
id: str | None = None,
|
||||
classes: str | None = None,
|
||||
disabled: bool = False,
|
||||
) -> None:
|
||||
super().__init__(name=name, id=id, classes=classes)
|
||||
super().__init__(name=name, id=id, classes=classes, disabled=disabled)
|
||||
self._data: dict[RowKey, dict[ColumnKey, CellType]] = {}
|
||||
"""Contains the cells of the table, indexed by row key and column key.
|
||||
The final positioning of a cell on screen cannot be determined solely by this
|
||||
|
||||
Reference in New Issue
Block a user