Skip to content

Commit

Permalink
Documentation fix; remove references to 'limit' options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilton Janfield committed Dec 11, 2015
1 parent 848e048 commit 344a334
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ <h4>#demoThreeA</h4>
<h4>#demoThreeB</h4>

<p>
This splitter was created using with the options <code>{handle: 'bar', position: 150, leftMinSize: 30, fixed: true}</code>. <code>position</code> defines a starting size,
<code>{limit, lowerLimit, and upperLimit}</code> define how small the panels may get, and
This splitter was created using with the options <code>{handle: 'bar', position: 150, leftMinSize: 0, fixed: true}</code>. <code>position</code> defines a starting size,
<code>leftMinSize</code> defines how small the panel gets when collapsed, and
<code>handle</code> sets up a different effect for the collapse handle. The <code>{fixed: true}</code>
option disables the ability to drag the splitter around, while leaving the collapse options intact - the
result being an unmovable bar with a button that collapses it back and forth.
combined result being an unmovable bar with a button that collapses it back and forth.
</p>

<p style="color: #888888;">
Expand Down Expand Up @@ -239,7 +239,7 @@ <h4>#demoThreeB</h4>

<span style="color: #770000">&lt;script&gt;</span>
jQuery(<span style="color: #008800; font-weight: bold">function</span> ($) {
$(<span style="background-color: #fff0f0">&#39;#demoOne&#39;</span>).enhsplitter({limit<span
$(<span style="background-color: #fff0f0">&#39;#demoOne&#39;</span>).enhsplitter({minSize<span
style="color: #333333">:</span> <span
style="color: #0000DD; font-weight: bold">50</span>, vertical<span
style="color: #333333">:</span> <span style="background-color: #fff0f0">false</span>});
Expand All @@ -248,10 +248,9 @@ <h4>#demoThreeB</h4>
style="color: #333333">:</span> <span
style="background-color: #fff0f0">&#39;bar&#39;</span>, position<span
style="color: #333333">:</span> <span
style="background-color: #fff0f0">150</span>, lowerLimit<span
style="background-color: #fff0f0">150</span>, leftMinSize<span
style="color: #333333">:</span> <span
style="color: #0000DD; font-weight: bold">0</span>, upperLimit<span
style="color: #333333">:</span> <span style="color: #0000DD; font-weight: bold">150</span>, fixed<span
style="color: #0000DD; font-weight: bold">0</span>, fixed<span
style="color: #333333">:</span> <span style="color: #0000DD; font-weight: bold">true</span>});
});
<span style="color: #770000">&lt;/script&gt;</span>
Expand Down Expand Up @@ -309,7 +308,7 @@ <h1>Usage</h1>
$(<span style="background-color: #fff0f0">&#39;#panels&#39;</span>).enhsplitter({handle<span
style="color: #333333">:</span> <span style="background-color: #fff0f0">&#39;striped&#39;</span>, position<span
style="color: #333333">:</span> <span
style="background-color: #fff0f0">&#39;150px&#39;</span>, limit<span
style="background-color: #fff0f0">&#39;150px&#39;</span>, minSize<span
style="color: #333333">:</span> <span style="color: #0000DD; font-weight: bold">0</span>});
<span style="color: #770000">&lt;/script&gt;</span>
</pre>
Expand Down Expand Up @@ -437,7 +436,7 @@ <h1>Options</h1>

<p>
This option is useful for creating fixed width navigation, tool, or other bars. When the options
<code>{position: 150, lowerLimit: 0, fixed: true}</code> are used together, it creates a splitter
<code>{position: 150, minSize: 0, fixed: true}</code> are used together, it creates a splitter
with a narrow panel (in this case 150px) that cannot be resized, but is completely hidden when the
collapse handle is clicked (and vice versa).
</p>
Expand Down

0 comments on commit 344a334

Please sign in to comment.