Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Dec 17, 2024
1 parent a985010 commit ac12920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/examples/getting_started/shiny_express.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ def coords():


@render.code
def views_tate():
def view_state():
return json.dumps(input.mapgl_view_state(), indent=2)
2 changes: 1 addition & 1 deletion docs/shiny_express.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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`.
For the example below the `output_id` is `mapgl`, so that you have to listen to `input.mapgl_clicked` to get the map clicked event.

```python
-8<-- "getting_started/shiny_express.py"
Expand Down

0 comments on commit ac12920

Please sign in to comment.