Skip to content

Commit

Permalink
more color-picker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 11, 2011
1 parent 28d31ce commit aaecc64
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@
var picker = new ui.ColorPicker;
picker.size(100);
picker.el.appendTo('#color-picker-size');

var picker = new ui.ColorPicker;
picker.width(80);
picker.el.appendTo('#color-picker-width');
});
</script>
<style>
Expand Down Expand Up @@ -364,6 +368,19 @@ <h3>.size(n)</h3>
</code>
</pre>

<h3>.width(n) / .height(n)</h3>
<p>Either the width or height may be adjusted individually.</p>

<div id="color-picker-width"></div>

<pre>
<code>
var picker = new ui.ColorPicker;
picker.width(80);
picker.el.appendTo('#color-picker-width');
</code>
</pre>

</section>

</body>
Expand Down

0 comments on commit aaecc64

Please sign in to comment.