(self)
| 280 | |
| 281 | @override |
| 282 | def compose(self) -> ComposeResult: |
| 283 | if self._title: |
| 284 | yield Label(self._title, classes='app-header') |
| 285 | |
| 286 | with Vertical(classes='content-container'): |
| 287 | if self._header: |
| 288 | yield Label(self._header, classes='header-text', id='header_text') |
| 289 | |
| 290 | option_list = _OptionList(id='option_list_widget') |
| 291 | |
| 292 | if not self._show_frame: |
| 293 | option_list.classes = 'no-border' |
| 294 | |
| 295 | if self._preview_location is None: |
| 296 | with Center(): |
| 297 | with Vertical(classes='list-container'): |
| 298 | yield option_list |
| 299 | else: |
| 300 | Container = Horizontal if self._preview_location == 'right' else Vertical |
| 301 | rule_orientation: Literal['horizontal', 'vertical'] = 'vertical' if self._preview_location == 'right' else 'horizontal' |
| 302 | |
| 303 | with Container(): |
| 304 | yield option_list |
| 305 | yield Rule(orientation=rule_orientation) |
| 306 | preview_label = Label('', id='preview_content', markup=False) |
| 307 | if self._wrap_preview: |
| 308 | preview_label.add_class('wrap-preview') |
| 309 | yield ScrollableContainer(preview_label) |
| 310 | |
| 311 | if self._filter: |
| 312 | yield Input(placeholder='/filter', id='filter-input') |
| 313 | |
| 314 | yield Footer() |
| 315 | |
| 316 | def on_mount(self) -> None: |
| 317 | _translate_bindings(self._merged_bindings, self._bindings) |
nothing calls this directly
no test coverage detected