A class that allows children of the element to be selected.
new SelectableElements(oElement, bMultiple);
| Name | Type | Descripton |
oElement | HTMLElement | The element which children should be selectable. |
bMultiple | Boolean | Whether to allow multiple selection or not. |
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Description | |||||||||
clickSyntax
Arguments
Return Type
| Called when the user clicks on the element. | |||||||||
fireChangeSyntax
Arguments
Return Type
| Fires the pseudo event change. | |||||||||
getItemSyntax
Arguments
Return Type
| Returns the nIndex:th item. Part of the Indexable interface. | |||||||||
getItemIndexSyntax
Arguments
Return Type
| Returns the index of a given item element. Part of the Indexable interface. | |||||||||
getItemsSyntax
Arguments
Return Type
| Returns an array/collection containing all the items. Part of the Indexable interface. | |||||||||
getItemSelectedSyntax
Arguments
Return Type
| Returns whether the element acting as item is selected. | |||||||||
getNextSyntax
Arguments
Return Type
| Returns the next item after the one passed as argument. Returns null if no more items are available. Part of the Traversable interface. | |||||||||
getPreviousSyntax
Arguments
Return Type
| Returns the previous item before the one passed as argument. Returns null if no more items are available. Part of the Traversable interface. | |||||||||
getSelectedIndexesSyntax
Arguments
Return Type
| Returns an array containing the indexes of the selected items. | |||||||||
getSelectedItemsSyntax
Arguments
Return Type
| Returns an array containing the HTMLElements that are selected. | |||||||||
isBeforeSyntax
Arguments
Return Type
| Returns whether the first argument comes before the second argument in the logical order of the items. Part of the Traversable interface. | |||||||||
isItemSyntax
Arguments
Return Type
| Returns whether the Node is considered an item or not. | |||||||||
setItemSelectedSyntax
Arguments
Return Type
| Selects or deselects an item. | |||||||||
setItemSelectedUiSyntax
Arguments
Return Type
| Updates the UI for the item. |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
change | Fires when the selection changes |
None.
This class extends
SelectableElements
and therefore all methods and field available for
SelectableElements
are also available for SelectableTableRows.
A class that allows table rows to be selected in a table.
new SelectableTableRows(oTableElement, bMultiple);
| Name | Type | Descripton |
oTableElement | HTMLTableElement | The table element which rows should be selectable. |
bMultiple | Boolean | Whether to allow multiple selection or not. |
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
| None. | |
None.
This class extends
SelectableElements
and therefore all methods and field available for
SelectableElements
are also available for SelectableTableCells.
A class that allows table cells to be selected in a table.
new SelectableTableCells(oTableElement, bMultiple);
| Name | Type | Descripton |
oTableElement | HTMLTableElement | The table element which cells should be selectable. |
bMultiple | Boolean | Whether to allow multiple selection or not. |
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
| None. | |
None.
This class extends
SelectableElements
and therefore all methods and field available for
SelectableElements
are also available for SelectableListItems.
A class that allows list items in a list to be selected.
new SelectableListItems(oListElement, bMultiple);
| Name | Type | Descripton |
oListElement | HTMLElement | The list element which list items should be selectable. |
bMultiple | Boolean | Whether to allow multiple selection or not. |
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Description |
| None. | |
| Name | Type | Descripton |
| None. | ||
| Name | Descripton |
| None. | |
None.
| Name | Description | |||||||||
addClassNameSyntax
Arguments
Return Type
| Adds a string to the class name of an element | |||||||||
removedClassNameSyntax
Arguments
Return Type
| removes a string from the class name of an element |
| Name | Type | Descripton |
| None. | ||