Skip to content

Commit

Permalink
Deployed ac12920 with MkDocs version: 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Dec 17, 2024
1 parent 880ed75 commit f0ca11e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 search/search_index.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions shiny_express/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@
<h1>Shiny Express</h1>

<p>In Shiny Express the <code>output_id</code> corresponds to the name of the <em>render</em> function.
For the example below your <code>output_id</code> equals <code>mapgl</code>. Therefore, you have to listen to <code>input.mapgl_clicked</code> to get the map clicked event <code>input.{output_id}.clicked</code>.</p>
For the example below the <code>output_id</code> is <code>mapgl</code>, so that you have to listen to <code>input.mapgl_clicked</code> to get the map clicked event.</p>
<div class="language-python highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="kn">import</span> <span class="nn">json</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="kn">from</span> <span class="nn">shiny.express</span> <span class="kn">import</span> <span class="nb">input</span><span class="p">,</span> <span class="n">render</span><span class="p">,</span> <span class="n">ui</span>
Expand All @@ -1128,7 +1128,7 @@ <h1>Shiny Express</h1>
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a><span class="nd">@render</span><span class="o">.</span><span class="n">code</span>
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a><span class="k">def</span> <span class="nf">views_tate</span><span class="p">():</span>
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a><span class="k">def</span> <span class="nf">view_state</span><span class="p">():</span>
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a> <span class="k">return</span> <span class="n">json</span><span class="o">.</span><span class="n">dumps</span><span class="p">(</span><span class="nb">input</span><span class="o">.</span><span class="n">mapgl_view_state</span><span class="p">(),</span> <span class="n">indent</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span>
</span></code></pre></div>

Expand Down
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit f0ca11e

Please sign in to comment.