---
title: Button on right
layout: page
js: examples/button-on-right.js
css: example.css
---

<p id="nav">
    <a href="../11_right-to-left/">&laquo; Example 11</a>
    <a href="../13_drag_outside/" class="next">Example 13 &raquo;</a>
</p>

<h1>Example 12 - button on right</h1>

<p>
    You can put the toggle button on the right by setting the <strong>buttonLeft</strong> option to <strong>false</strong>.
</p>

<div id="tree1" class="block-style" data-url="/example_data/"></div>

<h3>javascript</h3>

{% highlight js %}
$('#tree1').tree({
    buttonLeft: false,
    autoOpen: 0
});
{% endhighlight %}
