mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Some DataTable doc updates, rename Coord -> Coordinate and extract to module
This commit is contained in:
@@ -6,7 +6,7 @@ hide:
|
||||
|
||||
# Roadmap
|
||||
|
||||
We ([textualize.io](https://www.textualize.io/)) are actively building and maintaining Textual.
|
||||
We ([textualize.io](https://www.textualize.io/)) are actively building and maintaining Textual.
|
||||
|
||||
We have many new features in the pipeline. This page will keep track of that work.
|
||||
|
||||
@@ -18,24 +18,24 @@ High-level features we plan on implementing.
|
||||
* [ ] Integration with screen readers
|
||||
* [x] Monochrome mode
|
||||
* [ ] High contrast theme
|
||||
* [ ] Color blind themes
|
||||
* [ ] Color-blind themes
|
||||
- [ ] Command interface
|
||||
* [ ] Command menu
|
||||
* [ ] Fuzzy search
|
||||
- [ ] Configuration (.toml based extensible configuration format)
|
||||
- [x] Console
|
||||
- [x] Console
|
||||
- [ ] Devtools
|
||||
* [ ] Integrated log
|
||||
* [ ] DOM tree view
|
||||
* [ ] Integrated log
|
||||
* [ ] DOM tree view
|
||||
* [ ] REPL
|
||||
- [ ] Reactive state abstraction
|
||||
- [x] Themes
|
||||
* [ ] Customize via config
|
||||
- [x] Themes
|
||||
* [ ] Customize via config
|
||||
* [ ] Builtin theme editor
|
||||
|
||||
## Widgets
|
||||
|
||||
Widgets are key to making user friendly interfaces. The builtin widgets should cover many common (and some uncommon) use-cases. The following is a list of the widgets we have built or are planning to build.
|
||||
Widgets are key to making user-friendly interfaces. The builtin widgets should cover many common (and some uncommon) use-cases. The following is a list of the widgets we have built or are planning to build.
|
||||
|
||||
- [x] Buttons
|
||||
* [x] Error / warning variants
|
||||
@@ -44,8 +44,8 @@ Widgets are key to making user friendly interfaces. The builtin widgets should c
|
||||
- [ ] Content switcher
|
||||
- [x] DataTable
|
||||
* [x] Cell select
|
||||
* [ ] Row / Column select
|
||||
* [ ] API to update cells / rows
|
||||
* [x] Row / Column select
|
||||
* [ ] API to update cells / rows
|
||||
* [ ] Lazy loading API
|
||||
- [ ] Date picker
|
||||
- [ ] Drop-down menus
|
||||
@@ -76,4 +76,3 @@ Widgets are key to making user friendly interfaces. The builtin widgets should c
|
||||
* [ ] Indentation guides
|
||||
* [ ] Smart features for various languages
|
||||
* [ ] Syntax highlighting
|
||||
|
||||
|
||||
@@ -22,18 +22,32 @@ The example below populates a table with CSV data.
|
||||
|
||||
## Reactive Attributes
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
|-----------------|---------|---------------|---------------------------------------------------------|
|
||||
| `show_header` | `bool` | `True` | Show the table header |
|
||||
| `fixed_rows` | `int` | `0` | Number of fixed rows (rows which do not scroll) |
|
||||
| `fixed_columns` | `int` | `0` | Number of fixed columns (columns which do not scroll) |
|
||||
| `zebra_stripes` | `bool` | `False` | Display alternating colors on rows |
|
||||
| `header_height` | `int` | `1` | Height of header row |
|
||||
| `show_cursor` | `bool` | `True` | Show the cursor |
|
||||
| `cursor_type` | `str` | `"cell"` | One of `"cell"`, `"row"`, `"column"`, or `"none"` |
|
||||
| `cursor_cell` | `Coord` | `Coord(0, 0)` | The coordinates of the cell the cursor is currently on |
|
||||
| `hover_cell` | `Coord` | `Coord(0, 0)` | The coordinates of the cell the _mouse_ cursor is above |
|
||||
| Name | Type | Default | Description |
|
||||
|-----------------|--------------|--------------------|---------------------------------------------------------|
|
||||
| `show_header` | `bool` | `True` | Show the table header |
|
||||
| `fixed_rows` | `int` | `0` | Number of fixed rows (rows which do not scroll) |
|
||||
| `fixed_columns` | `int` | `0` | Number of fixed columns (columns which do not scroll) |
|
||||
| `zebra_stripes` | `bool` | `False` | Display alternating colors on rows |
|
||||
| `header_height` | `int` | `1` | Height of header row |
|
||||
| `show_cursor` | `bool` | `True` | Show the cursor |
|
||||
| `cursor_type` | `str` | `"cell"` | One of `"cell"`, `"row"`, `"column"`, or `"none"` |
|
||||
| `cursor_cell` | `Coordinate` | `Coordinate(0, 0)` | The coordinates of the cell the cursor is currently on |
|
||||
| `hover_cell` | `Coordinate` | `Coordinate(0, 0)` | The coordinates of the cell the _mouse_ cursor is above |
|
||||
|
||||
## Messages
|
||||
|
||||
### CellHighlighted
|
||||
|
||||
The `DataTable.CellHighlighted` message is emitted by the `DataTable` widget when the cursor moves
|
||||
to highlight a new cell. It's also emitted when the cell cursor is re-enabled (by setting `show_cursor=True`),
|
||||
and when the cursor type is changed to `"cell"`.
|
||||
|
||||
#### Attributes
|
||||
|
||||
| Attribute | Type | Description |
|
||||
|--------------|----------------------------------------------|----------------------------------|
|
||||
| `value` | `CellType` | The value contained in the cell. |
|
||||
| `coordinate` | [Coordinate][textual.coordinates.Coordinate] | The coordinate of the cell. |
|
||||
|
||||
## See Also
|
||||
|
||||
|
||||
Reference in New Issue
Block a user