Commits

Jason Scheirer committed c890822

Use fontawesome

Comments (0)

Files changed (2)

         {
             kind: "onyx.Toolbar",
             components: [
-                {kind: "onyx.RadioGroup", /* defaultKind: "onyx.Button", highlander: true, */
+                {kind: "onyx.RadioGroup",
                  name: "searchgroup",
                  classes: "tools group",
                  components: [
                      placeholder: "Start typing",
 		     onkeyup: "keyUp"},
                     {kind: "onyx.Button",
-                     content: "Search",
-                     ontap: "doSearch"}
-                ]}
-         ]},
-         {
-        fit: true,
-            name: "resultholder",
+		     components:[ {tag: "span", 
+		                   classes: "icon-search"},
+				  {tag: "span",
+    				   content: "  Search"}],
+                         ontap: "doSearch"}
+                    ]}
+             ]},
+             {
+            fit: true,
+                name: "resultholder",
         classes: "matchdiv"
          }
          ],
    },
    gotWords: function(sender, response)
    {
-        var words = enyo.map(response.words, function f(g) {return {content: g, classes: "wordmatch"}; });
+        var words = enyo.map(response.words,
+			     function f(g) 
+			     {
+			         return {content: g, classes: "wordmatch"};
+			     });
 	if (words.length > 0)
 	{
 		var resultHolder = this.$.resultholder;
    {
         var resultHolder = this.$.resultholder;
         resultHolder.destroyClientControls();
-        this.createComponent({content: message,
-    		              classes: "errormessage",
+        this.createComponent({classes: "errormessage",
+			      components: [{tag: "span", classes: "icon-exclamation-sign"},
+			                   {tag: "span", content: message}],
                               container: resultHolder}).render();
    }
 });
 			font-size: larger;
 		}
 	</style>
+	<link rel="stylesheet" href="Font-Awesome/css/font-awesome.css">
 </head>
 <body>
 	 <script type="text/javascript">