vimsheet.ui.funcs_screen
Functions reference modal — lists all formula functions with signatures.
- class vimsheet.ui.funcs_screen.FuncsScreen(filter_term='')[source]
Bases:
VimModalScreenScrollable modal listing all formula functions with signatures.
- Parameters:
filter_term (str)
- DEFAULT_CSS = '\n FuncsScreen {\n align: center middle;\n }\n FuncsScreen > VerticalScroll {\n width: 84%;\n height: 92%;\n background: $surface;\n border: round $primary;\n padding: 1 2;\n }\n FuncsScreen > VerticalScroll > Static {\n width: auto;\n }\n '
Default TCSS.
- __init__(filter_term='')[source]
Initialize the screen.
- Parameters:
name – The name of the screen.
id – The ID of the screen in the DOM.
classes – The CSS classes for the screen.
filter_term (str)
- Return type:
None
- compose()[source]
Called by Textual to create child widgets.
This method is called when a widget is mounted or by setting
recompose=Truewhen calling [refresh()][textual.widget.Widget.refresh].Note that you don’t typically need to explicitly call this method.
Example
```python def compose(self) -> ComposeResult:
yield Header() yield Label(“Press the button below:”) yield Button() yield Footer()
- Return type:
Iterable[Widget]
- can_focus = False
Widget may receive focus.
- can_focus_children = True
Widget’s children may receive focus.