thyListBox

This is the ListBox Element, derivate from thyGridPanel.

The thyListBox permits the user to do all things a common ListBox allows, but differently from other ListBoxes, thyListBox has 3 columns:

  • The first shows the index;
  • The second is for value/id;
  • The third is for contents.

If you don’t want to show indexes, set .thyListBox_col-1 CSS class width property to 0px.  The same applies to col0, which is id/value.  If you do that you’d have a common listbox.

CSS Classes

  • .thyListBox_row
  • .thyListBox_selected_row
  • .thyListBox_header_row
  • .thyListBox_header_selected_row
  • .<object name>_row
  • .<object name>_header_row
  • .<object name>_selected_row
  • .<object name>_selected_header_row

See Also

Summary
This is the ListBox Element, derivate from thyGridPanel.
Removes all rows from list
Unselect all rows
Overloaded method that prevents the insertion of columns in a listbox
Overloaded method that prevents the insertion of columns in a listbox
Overloaded method that garantees if the user sends just one field for each roll, they will be assumed as contents and their values will be set to null
Returns an array with the values of the selected rows
Returns an array with the indexes of the selected rows
Returns all selected informations
Removes all selected rows
Returns the content associated with the given value
Searches for a specified string inside values column
Return selected values

cleanUp

p.cleanUp = function ()

Removes all rows from list

reset

p.reset = function ()

Unselect all rows

insertColumn

p.insertColumn = function ()

Overloaded method that prevents the insertion of columns in a listbox

appendColumn

p.appendColumn = function ()

Overloaded method that prevents the insertion of columns in a listbox

appendRow

p._thyGridAppendRow = p.appendRow; p.appendRow = function (row)

Overloaded method that garantees if the user sends just one field for each roll, they will be assumed as contents and their values will be set to null

getSelectedValues

p.getSelectedValues = function ()

Returns an array with the values of the selected rows

getSelectedIndexes

p.getSelectedIndexes = function ()

Returns an array with the indexes of the selected rows

getSelected

Returns all selected informations

See thyGrid::getSelectedRows for more information

removeSelected

Removes all selected rows

See thyGrid::removeSelectedRows for more information

getContentByValue

p.getContentByValue = function (value)

Returns the content associated with the given value

Parameter

valueThe value that is associated with a content

search

p.search = function (str)

Searches for a specified string inside values column

Parameter

strThe string to be searched for

_sweepOutContents

p._sweepOutContents = function ()

Return selected values

p.cleanUp = function ()
Removes all rows from list
p.reset = function ()
Unselect all rows
p.insertColumn = function ()
Overloaded method that prevents the insertion of columns in a listbox
p.appendColumn = function ()
Overloaded method that prevents the insertion of columns in a listbox
p._thyGridAppendRow = p.appendRow; p.appendRow = function (row)
Overloaded method that garantees if the user sends just one field for each roll, they will be assumed as contents and their values will be set to null
p.getSelectedValues = function ()
Returns an array with the values of the selected rows
p.getSelectedIndexes = function ()
Returns an array with the indexes of the selected rows
p.getContentByValue = function (value)
Returns the content associated with the given value
p.search = function (str)
Searches for a specified string inside values column
p._sweepOutContents = function ()
Return selected values
This is the basic Cell element.
This is the basic ThyAPI Collection Element.
Base class for all other ThyAPI GUI Components
p.getSelectedRows = function ()
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected row.
p.removeSelectedRows = function ()
Remove all selected Rows from Grid