6
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Maven+Pro:400,700">
7
<link rel="stylesheet" href="../../build/cssgrids/grids-min.css">
8
<link rel="stylesheet" href="../assets/css/main.css">
9
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
10
<script src="../../build/yui/yui-min.js"></script>
18
<a href="#toc" class="jump">Jump to Table of Contents</a>
22
<div class="yui3-u-3-4">
24
<div class="content"><div class="intro">
28
<h2 id="getting-started">Getting Started</h2>
31
To include the source files for Button and its dependencies, first load
32
the YUI seed file if you haven't already loaded it.
35
<pre class="code prettyprint"><script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script></pre>
39
Next, create a new YUI instance for your application and populate it with the
40
modules you need by specifying them as arguments to the <code>YUI().use()</code> method.
41
YUI will automatically load any dependencies required by the modules you
45
<pre class="code prettyprint"><script>
46
// Create a new YUI instance and populate it with the required modules.
47
YUI().use('button', function (Y) {
48
// Button is available and ready for use. Add implementation
49
// code here.
51
</script></pre>
55
For more information on creating YUI instances and on the
56
<a href="http://yuilibrary.com/yui/docs/api/classes/YUI.html#method_use"><code>use()</code> method</a>, see the
57
documentation for the <a href="../yui/index.html">YUI Global Object</a>.
64
<div class="yui3-u-1-4">
67
<div id="toc" class="sidebox">
69
<h2 class="no-toc">Table of Contents</h2>
75
<a href="#getting-started">Getting Started</a>
85
<h2 class="no-toc">Examples</h2>
92
<li data-description="This example shows how you can easily style button and non-button DOM elements to appear as buttons">
93
<a href="cssbutton.html">Styling elements with cssbutton</a>
98
<li data-description="This example shows a simple, light solution to enhance <button> nodes">
99
<a href="button-plugin.html">Enhancing <button> nodes with button-plugin</a>
104
<li data-description="This example demonstrates how to create button widgets">
105
<a href="button.html">Basic button widgets</a>
110
<li data-description="This example demonstrates how to create a widget containing a group of buttons">
111
<a href="button-group.html">Managing groups of buttons with button-group</a>
126
<script src="../assets/vendor/prettify/prettify-min.js"></script>
127
<script>prettyPrint();</script>