Sha256: ff2dcea598477bf8602dd43ad9f6c551a3a00d47c5d528cf390e54c1b68c270c
Contents?: true
Size: 952 Bytes
Versions: 7
Compression:
Stored size: 952 Bytes
Contents
--- title: Javascript tree with autoescape layout: page js: examples/autoescape.js css: example.css --- <p id="nav"> <a href="05_load_on_demand.html">« Example 5</a> <a href="07_autoscroll.html" class="next">Example 7 »</a> </p> <h1>Example 6 - autoEscape</h1> <p> You can put html in the node titles setting the <a href="../index.html#tree-options-autoescape">autoEscape</a> option to <strong>false</strong>. </p> <div id="tree1"></div> <h3>html</h3> {% highlight html %} <div id="tree1"></div> {% endhighlight %} <h3>javascript</h3> {% highlight js %} var data = [ { label: 'examples', children: [ { label: '<a href="example1.html">Example 1</a>' }, { label: '<a href="example2.html">Example 2</a>' }, '<a href="example3.html">Example </a>' ] } ]; // set autoEscape to false $('#tree1').tree({ data: data, autoEscape: false, autoOpen: true }); {% endhighlight %}
Version data entries
7 entries across 7 versions & 1 rubygems