Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
(gh-pages) documents ellipsis correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher McCulloh committed Sep 21, 2015
1 parent 8b55987 commit 1a3b5b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _includes/js/placard.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ <h3 id="placard-usage-javascript">Via JavaScript</h3>
<h3 id="placard-usage-data-attributes">Via data-attributes</h3>
<p>The placard will automatically instantiate any placard with <code>data-initialize="placard"</code>. If you add the control markup <em>after page load</em> with <code>data-initialize="placard"</code>, this control initialize on <code>focus</code>.

<p>Add <code>data-ellipsis="true"</code> to the placard element to enable ellipsis for overflow on the
input or textarea. This function uses JavaScript to enable ellipsis for textareas. Use the
<code>.('getValue');</code> and <code>.('setValue');</code> methods to retrieve or set values upon focus gain/loss. Performance drops with larger textareas when ellipsis is enabled.
<p>Add <code>data-ellipsis="true"</code> to the placard element to enable ellipsis to use JavaScript to enable ellipsis for textareas (For input elements, <a href="http://jsfiddle.net/cmcculloh/n39kao70/">use CSS</a>). Use the <code>.('getValue');</code> and <code>.('setValue');</code> methods to retrieve or set values upon focus gain/loss. Performance drops with larger textareas when ellipsis is enabled.
</p>

<h3 id="placard-usage-markup">Markup</h3>
Expand Down

0 comments on commit 1a3b5b0

Please sign in to comment.