Commits

Jason Scheirer  committed ffdb3eb

Initial commit

  • Participants

Comments (0)

Files changed (2)

+enyo.kind({
+	name: "SearchButtonGroup",
+	kind: "Group",
+	defaultKind: "onyx.Button",
+	highlander: true,
+ 	components: [
+		{content: "Matches"},
+		{content: "Starts with", active: true},
+		{content: "Has all"}]
+});
+
+var searchGroup = new SearchButtonGroup();
+
+enyo.kind({
+	name: "App",
+	classes: "onyx",
+	components: [
+		{
+			kind: "onyx.Toolbar",
+			components: [
+				/*
+				{kind: "Group", defaultKind: "onyx.Button", highlander: true, 
+				 classes: "tools group",
+				 components: [
+					{content: "Matches"},
+					{content: "Starts with", active: true},
+					{content: "Has all"}]
+				},
+				*/
+				searchGroup,
+				{kind: "onyx.InputDecorator",
+				 components: [
+					{kind: "onyx.Input",
+					 id: "search",
+					 style: "width: 25em;",
+					 id: "searchinput",
+					 placeholder: "Start typing"},
+					{kind: "onyx.Button", content: "Search"}
+				]}
+		 ]},
+		 {
+			id: "resultholder",
+		 }
+		     ]
+});
+<!doctype html>
+<html>
+<head>
+	<title>match-o-matic</title>
+	<script src="enyo/enyo.js" type="text/javascript"></script>
+	<script src="onyx/package.js" type="text/javascript"></script>
+	<script src="layout/fittable/package.js" type="text/javascript"></script>
+ 	<script src="app.js" type="text/javascript"></script>
+	<style type="text/css">
+		body {
+			margin: 0;
+			padding: 0;
+			height: auto;
+		}
+	</style>
+</head>
+<body>
+	 <script type="text/javascript">
+		new App().write();
+	 </script>
+</body>
+</html>
+