Skip to content

Commit

Permalink
Add shiny express example
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Dec 16, 2024
1 parent 42c1a4f commit a985010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/shiny_express.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
In Shiny Express the `output_id` corresponds to the name of the _render_ function.
For the example below your `output_id` equals `mapgl`. Therefore, you have to listen to `input.mapgl_clicked` to get the map clicked event `input.{output_id}.clicked`.

```python
-8<-- "getting_started/shiny_express.py"
```
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ nav:
- Layers: layers.md
- Deck.GL Layers: deckgl.md
- Shiny: shiny.md
- Shiny Express: shiny_express.md
- Jupyter: jupyter.md
- Streamlit: streamlit.md
- Changelog: changelog.md
Expand Down Expand Up @@ -65,4 +66,4 @@ markdown_extensions:
base_path: [docs/examples, "."]

repo_name: py-maplibregl
repo_url: https://github.com/eodaGmbH/py-maplibregl
repo_url: https://github.com/eodaGmbH/py-maplibregl

0 comments on commit a985010

Please sign in to comment.