classZebra - (string) the class added to odd numbered rows; defaults to 'table-tr-odd'
useKeyboard - (boolean) if true (the default) allows for the use of arrows to navigate rows and enter to select them.
classRowSelected - (string) the class to add to the tr that is selected; defaults to 'table-tr-selected'
classRowHovered - (string) the class to add to the tr that is hovered over by the mouse or has focus with the keyboard; defaults to 'table-tr-hovered'
classSelectable - (string) the class to add to the table when selection is enabled; defaults to 'table-selectable'
selectable - (boolean) if true the rows will be selectable. Defaults to false.
allowMultiSelect - (boolean) if true (the default) the user can select more than one row at a time.
shiftForMultiSelect - (boolean) enables support for holding shift to multi-select files (defaults to false). If false (and allowMultiSelect is true), clicking any row selects it.
selectHiddenRows - (boolean) if false (the default), the selection logic ignores hidden rows, as if they were not in the DOM.
Events
rowFocus - callback to execute when a row is selected; passed the tr of the selected row, and the collection of selected rows
rowUnfocus - callback to execute when a row is deselected; passed the tr of the unselected row, and the collection of selected rows
Example
var myTable = new HtmlTable({
properties: {
border: 1,
cellspacing: 3},
rows: [['apple', 'red'],
['lemon', 'yellow']],
selectable: true});
myTable.inject($('someContainer'));