refactor of docs

This commit is contained in:
Will McGugan
2022-05-26 17:02:30 +01:00
parent 51f1957f1c
commit 3030557060
10 changed files with 165 additions and 110 deletions

15
docs/events/mount.md Normal file
View File

@@ -0,0 +1,15 @@
# Mount
The `Mount` event is sent to a widget and Application when it is first mounted.
- [ ] Bubbles
## Parameters
`sender`
: The sender of the widget
## Code
::: textual.events.Mount

23
docs/events/resize.md Normal file
View File

@@ -0,0 +1,23 @@
# Resize
The `Resize` event is sent to a widget when its size changes and when it is first made visible.
- [x] Bubbles
## Parameters
`event.size`
: The new size of the Widget.
`event.virtual_size`
: The virtual size (scrollable area) of the Widget.
`event.container_size`
: The size of the widget's container.
## Code
::: textual.events.Resize