mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
refactor of docs
This commit is contained in:
15
docs/events/mount.md
Normal file
15
docs/events/mount.md
Normal 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
23
docs/events/resize.md
Normal 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
|
||||
Reference in New Issue
Block a user