Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
Merge branch 'devel'. Version 0.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kalnitsky committed Oct 13, 2013
2 parents a838607 + 34cf060 commit 67860ba
Show file tree
Hide file tree
Showing 15 changed files with 843 additions and 3,095 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ node_js:

script:
- "wget https://raw.github.com/jquery/qunit/master/addons/phantomjs/runner.js"
- "phantomjs runner.js tests/index.html"
- "phantomjs runner.js testsuite/index.html"
10 changes: 5 additions & 5 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Here you can see the full list of changes between each Listbox.js release.
Version 0.2.0
`````````````

(release date to be announced)
Released on October 13, 2013.

- Refactored the plugin core. There are two classes now: ``SingleSelectLisbox``
and ``MultiSelectListbox``, which are inherited from the ``Listbox`` class.
Expand All @@ -21,7 +21,7 @@ Version 0.2.0
Version 0.1.3
`````````````

Released on August 4th, 2013.
Released on August 4, 2013.

- Changed license from LGPLv3 to BSD.
- Declared each method as prototype property.
Expand All @@ -32,7 +32,7 @@ Released on August 4th, 2013.
Version 0.1.2
`````````````

Released on January 29th, 2013.
Released on January 29, 2013.

- Use semicolons in plugin sources.
- Removed build tool from repo.
Expand All @@ -43,14 +43,14 @@ Released on January 29th, 2013.
Version 0.1.1
`````````````

Released on January 18th, 2013.
Released on January 18, 2013.

- «jQuery Listbox» got renamed to «Listbox.js».


Version 0.1.0
`````````````

Released on January 17th, 2013.
Released on January 17, 2013.

- First public release.
67 changes: 27 additions & 40 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Listbox.js
==========

.. image:: https://travis-ci.org/ikalnitsky/listbox.js.png?branch=master
:target: https://travis-ci.org/ikalnitsky/listbox.js
:Author: `Igor Kalnitsky <[email protected]>`_
:License: `BSD 3-clause`_
:Version: 0.2.0
:Tests: |travis|


**Listbox.js** is a simple jQuery plugin that provides a more powerful
Expand All @@ -28,33 +30,33 @@ Link the component and a stylesheet from your page.
.. code:: html

<!-- make sure that jQuery is already included -->
<script src="js/jquery.min.js"></script>
<script src="/path/to/jquery.js"></script>

<!-- include listbox plugin and default stylesheet -->
<link href="styles/listbox.css" rel="stylesheet">
<script src="js/listbox.js"></script>
<link href="/path/to/listbox.css" rel="stylesheet">
<script src="/path/to/listbox.js"></script>


Create Listbox object.

.. code:: html

<script>
$(function() {
$('select').listbox({
'class': 'myOwnClass',
'searchbar': true
})
})
</script>

<select>
<option>Item #1</option>
<option>Item #2</option>
<option>Item #3</option>
<option>Item #4</option>
</select>

<script>
$(function() {
$('select').listbox({
'class': 'myOwnClass',
'searchbar': true
});
});
</script>


Customization
-------------
Expand All @@ -63,26 +65,13 @@ Listbox.js uses following ``CSS`` classes.

.. code:: css
/* <div>: component container */
.lbjs {}
/* <div>: container for list items */
.lbjs-list {}
/* <div>: list item */
.lbjs-item {}
/* <div>: enabled list item */
.lbjs-item:not([disabled]) {}
/* <div>: disabled list item */
.lbjs-item[disabled] {}
/* <div>: selected list item */
.lbjs-item[selected] {}
/* <input>: search query input */
.lbjs-searchbar {}
.lbjs {} /* <div>: component container */
.lbjs-list {} /* <div>: container for list items */
.lbjs-item {} /* <div>: list item */
.lbjs-item:not([disabled]) {} /* <div>: enabled list item */
.lbjs-item[disabled] {} /* <div>: disabled list item */
.lbjs-item[selected] {} /* <div>: selected list item */
.lbjs-searchbar {} /* <input>: search query input */
FAQ
Expand Down Expand Up @@ -111,13 +100,11 @@ FAQ
if (['PHP', 'JavaScript'].indexOf(value) != -1)
$(this).attr('disabled', '');
})
});
Meta
----
* Author: Igor Kalnitsky <[email protected]>
* Version: 0.2.0-dev
.. _BSD 3-clause: http://raw.github.com/ikalnitsky/listbox.js/master/LICENSE
.. _XSnippet: http://xsnippet.org/

.. _XSnippet: http://xsnippet.org/
.. |travis| image:: https://travis-ci.org/ikalnitsky/listbox.js.png?branch=master
Loading

0 comments on commit 67860ba

Please sign in to comment.