-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
274 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Jorik Kraaikamp (https://github.com/JostCrow) | ||
Piotr Gawron (https://github.com/piotr-gawron) | ||
Sven van de Scheur (https://github.com/svenvandescheur) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var gulp = require('gulp'); | ||
var gulpJsdoc2md = require('gulp-jsdoc-to-markdown') | ||
var rename = require('gulp-rename') | ||
var paths = require('../paths'); | ||
|
||
|
||
/** | ||
* doc task | ||
* Run using "gulp jsdoc" | ||
* Generates documentation files | ||
*/ | ||
gulp.task('jsdoc', function() { | ||
return gulp.src([paths.source]) | ||
.pipe(gulpJsdoc2md()) | ||
|
||
// Add .md extension | ||
.pipe(rename(function (path) { | ||
path.extname = '.md'; | ||
})) | ||
|
||
.pipe(gulp.dest(paths.doc)) | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<a name="DualListbox"></a> | ||
|
||
## DualListbox | ||
Dual select interface allowing the user to select items from a list of provided options. | ||
|
||
**Kind**: global class | ||
|
||
* [DualListbox](#DualListbox) | ||
* [.setDefaults()](#DualListbox+setDefaults) | ||
* [.addSelected(listItem)](#DualListbox+addSelected) | ||
* [.redraw()](#DualListbox+redraw) | ||
* [.removeSelected(listItem)](#DualListbox+removeSelected) | ||
* [.searchLists(searchString)](#DualListbox+searchLists) | ||
* [.updateAvailableListbox()](#DualListbox+updateAvailableListbox) | ||
* [.updateSelectedListbox()](#DualListbox+updateSelectedListbox) | ||
* [._actionAllSelected()](#DualListbox+_actionAllSelected) | ||
* [._updateListbox()](#DualListbox+_updateListbox) | ||
* [._actionItemSelected()](#DualListbox+_actionItemSelected) | ||
* [._actionAllDeselected()](#DualListbox+_actionAllDeselected) | ||
* [._actionItemDeselected()](#DualListbox+_actionItemDeselected) | ||
* [._actionItemDoubleClick()](#DualListbox+_actionItemDoubleClick) | ||
* [._actionItemClick()](#DualListbox+_actionItemClick) | ||
* [._addButtonActions()](#DualListbox+_addButtonActions) | ||
* [._addClickActions(listItem)](#DualListbox+_addClickActions) | ||
* [._createList()](#DualListbox+_createList) | ||
* [._createButtons()](#DualListbox+_createButtons) | ||
|
||
<a name="DualListbox+setDefaults"></a> | ||
|
||
### dualListbox.setDefaults() | ||
Sets the default values that can be overwritten. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+addSelected"></a> | ||
|
||
### dualListbox.addSelected(listItem) | ||
Add the listItem to the selected list. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
|
||
| Param | Type | | ||
| --- | --- | | ||
| listItem | <code>NodeElement</code> | | ||
|
||
<a name="DualListbox+redraw"></a> | ||
|
||
### dualListbox.redraw() | ||
Redraws the Dual listbox content | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+removeSelected"></a> | ||
|
||
### dualListbox.removeSelected(listItem) | ||
Removes the listItem from the selected list. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
|
||
| Param | Type | | ||
| --- | --- | | ||
| listItem | <code>NodeElement</code> | | ||
|
||
<a name="DualListbox+searchLists"></a> | ||
|
||
### dualListbox.searchLists(searchString) | ||
Filters the listboxes with the given searchString. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
|
||
| Param | Type | | ||
| --- | --- | | ||
| searchString | <code>Object</code> | | ||
|
||
<a name="DualListbox+updateAvailableListbox"></a> | ||
|
||
### dualListbox.updateAvailableListbox() | ||
Update the elements in the available listbox; | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+updateSelectedListbox"></a> | ||
|
||
### dualListbox.updateSelectedListbox() | ||
Update the elements in the selected listbox; | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionAllSelected"></a> | ||
|
||
### dualListbox._actionAllSelected() | ||
Action to set all listItems to selected. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_updateListbox"></a> | ||
|
||
### dualListbox._updateListbox() | ||
Update the elements in the listbox; | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionItemSelected"></a> | ||
|
||
### dualListbox._actionItemSelected() | ||
Action to set one listItem to selected. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionAllDeselected"></a> | ||
|
||
### dualListbox._actionAllDeselected() | ||
Action to set all listItems to available. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionItemDeselected"></a> | ||
|
||
### dualListbox._actionItemDeselected() | ||
Action to set one listItem to available. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionItemDoubleClick"></a> | ||
|
||
### dualListbox._actionItemDoubleClick() | ||
Action when double clicked on a listItem. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_actionItemClick"></a> | ||
|
||
### dualListbox._actionItemClick() | ||
Action when single clicked on a listItem. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_addButtonActions"></a> | ||
|
||
### dualListbox._addButtonActions() | ||
Adds the actions to the buttons that are created. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_addClickActions"></a> | ||
|
||
### dualListbox._addClickActions(listItem) | ||
Adds the click items to the listItem. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
|
||
| Param | Type | | ||
| --- | --- | | ||
| listItem | <code>Object</code> | | ||
|
||
<a name="DualListbox+_createList"></a> | ||
|
||
### dualListbox._createList() | ||
Creates list with the header. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> | ||
<a name="DualListbox+_createButtons"></a> | ||
|
||
### dualListbox._createButtons() | ||
Creates the buttons to add/remove the selected item. | ||
|
||
**Kind**: instance method of <code>[DualListbox](#DualListbox)</code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.