0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

docs: update docs for various widgets

This commit is contained in:
2025-04-24 14:53:09 +02:00
parent 77f9d42576
commit b6695b45d0
7 changed files with 55 additions and 35 deletions

View File

@ -23,7 +23,8 @@ In this example, we demonstrate how to add a `WebsiteWidget` to a `BECDockArea`
```python
# Add a new dock with a WebsiteWidget
web = gui.add_dock().add_widget("WebsiteWidget")
dock_area = gui.new()
web = dock_area.new().new(gui.available_widgets.WebsiteWidget)
# Set the URL of the website to display
web.set_url("https://bec.readthedocs.io/en/latest/")
@ -32,6 +33,7 @@ web.set_url("https://bec.readthedocs.io/en/latest/")
## Example 2 - Navigating within the Website Widget
The `WebsiteWidget` allows users to navigate back and forward through the websites history. This example shows how to implement these navigation controls.
If you click on a link in the website, you can use the back and forward buttons to navigate through the history.
```python
# Go back in the website history