Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated for new version of component build tool

  • Loading branch information...
commit ebda854254457625d88079a2ffa32f1ae90cf870 1 parent 7131fba
@colinf authored
View
2  .gitignore
@@ -1,3 +1,5 @@
node_modules
test/*.js
test/*.css
+build
+components
View
9 History.md
@@ -1,5 +1,10 @@
-0.0.2 / 2012-07-05
+0.0.1 / 2012-08-09
==================
+ * Initial version
- * fix dialog.effect support
+0.0.2 / 2012-09-09
+==================
+ * Added component.json
+ * Updated for latest version of component build tool
+ * Allow constructor to be called without new
View
8 Makefile
@@ -1,8 +1,14 @@
+build: index.js components
+ @component build
+
+components:
+ @component install
+
test/out.js: index.js
component build package.json test/out
clean:
- rm -f test/out.*
+ rm -fr build components
.PHONY: clean
View
5 Readme.md
@@ -2,6 +2,7 @@
# Listbox Menu
A Listbox Menu component with structural styling to give you a clean slate.
+
The Listbox Menu component is built on top of [Menu](http://github.com/component/menu).
![js listbox menu component](http://colinf.github.com/listbox-menu/images/Listbox-Menu.png)
@@ -9,9 +10,11 @@
## Installation
```
-npm install listbox-menu-component
+component install colinf/listbox-menu
```
+You can find out more about using and installing components [here](https://github.com/component/component).
+
## Features
- events for composition
View
12 component.json
@@ -0,0 +1,12 @@
+{
+ "name": "listbox-menu",
+ "description": "Listbox Menu component",
+ "version": "0.0.2",
+ "keywords": ["listbox", "menu", "component"],
+ "dependencies": {
+ "component/jquery": "*",
+ "component/menu": "*"
+ },
+ "scripts": ["index.js"],
+ "repo": "https://raw.github.com/colinf/listbox-menu"
+}
View
6 test/index.html
@@ -3,7 +3,7 @@
<head>
<title>Listbox-Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="out.css" />
+ <link rel="stylesheet" href="../build/build.css" />
<style>
.menu.listbox-menu {
border: 1px solid black;
@@ -26,7 +26,7 @@
</head>
<body>
<title>Listbox-Menu</title>
- <script src="out.js"></script>
+ <script src="../build/build.js"></script>
<script>
var listboxMenu = require('listbox-menu');
@@ -50,7 +50,7 @@
];
var menu = new listboxMenu();
- var submenu = new listboxMenu();
+ var submenu = listboxMenu();
submenu.setSelectChecker(function(item) {
return confirm("Do you really want to do this?");
});
Please sign in to comment.
Something went wrong with that request. Please try again.