Skip to content

Commit 2db54a0

Browse files
committed
add controls page
1 parent 4c2d831 commit 2db54a0

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

_includes/posts/mainlang_documentation_eg.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@
530530
{% endif %}
531531
{%- endfor -%}
532532

533-
{% if forloop_idx > num_examples %}
533+
{% if forloop_idx >= num_examples %}
534534
<a href="/{{language}}/controls/" class="langindexlink">More Controls &raquo;</a>
535535
{% endif %}
536536
</header>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
permalink: javascript/controls/
3+
description: Plotly.js makes interactive, publication-quality graphs online. Examples of how to make controls in charts.
4+
name: Add Custom Controls
5+
layout: langindex
6+
language: plotly_js
7+
display_as: controls
8+
thumbnail: thumbnail/mixed.jpg
9+
page_type: example_index
10+
---
11+
12+
13+
<header class="--welcome">
14+
<div class="--welcome-body">
15+
<!--div.--wrap-inner-->
16+
<div class="--title">
17+
18+
<div class="--body">
19+
<h1>Add Custom Controls</h1>
20+
<p>{{page.description}}</p>
21+
{% include layouts/dashplug.html %}
22+
</div>
23+
</div>
24+
</div>
25+
</header>
26+
27+
{% assign languagelist = site.posts | where:"language","plotly_js" | where:"display_as","controls" | where: "layout","base" | sort: "order" %}
28+
{% include posts/documentation_eg.html %}

0 commit comments

Comments
 (0)