This is the Grid Element, the holder of cells.
selectrow | happens in the moment a row is selected |
unselectrow | happens in the moment a row is unselected |
<thyCellCollection>
name | The name of the widget |
label | The label of the widget |
This is the Grid Element, the holder of cells. | |
Removes every cell of the grid, including columns | |
Removes all grid rows | |
Inserts a new column into the grid. | |
Inserts a new column in the next available position. | |
Moves a whole column from one position to another | |
Returns a thyCollection of all specified column contents | |
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected column. | |
Returns the number of columns this grid has | |
Removes a column from Grid. | |
Removes all columns of the grid. | |
Searches for a specified string in the specified column | |
Inserts a Row on the specified position (or at the end, if no index specified | |
Inserts a row at the end of the grid. | |
Move a Row from one position to another and refreshes CSS Classes | |
Returns a thyCollection of all specified row contents | |
Returns the thyGridRow element that is in the specified position | |
Returns a thyCollection with the selected row indexes | |
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected row. | |
Returns the number of rows in Grid | |
Removes all rows from Grid | |
Remove all selected Rows from Grid | |
Remove specified row from Grid and re-index rows | |
Always selects a row instead of just a cell. | |
Returns the contents of a specified Cell | |
Returns a thyCollection with the contents of the selected cells | |
Returns the thyGridCell element that resides on the specified location | |
Change the contents of a specified cell. | |
Returns the DOM object that holds children DOM objects | |
Overwritten method that adds the specified class to main, rows and cells | |
Overwritten method that removes the specified class from main, rows and cells | |
Add all classes that were appended to thyGrid to a Row | |
Adds all classes that were appended to thyGrid to the cells of a row with their correct values | |
Removes all classes that were appended to thyGrid from a Row | |
Removes all classes that were appended to thyGrid from all Cells of a Row | |
Updates Row name to reflect its actual position | |
Clear up the thyGrid and inserts new specified contents | |
Return all the contents of a grid |
p.insertColumn = function ( title, col, index )
Inserts a new column into the grid. This method (or appendColumn) can must be called before any other to initialize the grid.
title | The column title text |
col | The thyCollection of column contents. If this is the first inserted column, the collection can have any number of elements. If this is not the first, the number will be shrinked/grown to reflect the actual number of rows. This argument is optional. |
index | The position this column must occupy. This argument is optional |
p.appendColumn = function ( title, col )
Inserts a new column in the next available position.
title | The column title text |
col | The thyCollection of column contents. If this is the first inserted column, the collection can have any number of elements. If this is not the first, the number will be shrinked/grown to reflect the actual number of rows. This argument is optional. |
p.getColumn = function ( index )
Returns a thyCollection of all specified column contents
index | The column position |
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected column.
THIS METHOD IS NOT IMPLEMENTED YET!!!
p.insertRow = function ( row, index )
Inserts a Row on the specified position (or at the end, if no index specified
row | A thyCollection of row contents, indexed by column index |
index | The position where this row should be inserted |
p.appendRow = function ( row )
Inserts a row at the end of the grid.
row | A thyCollection of the Row contents, indexed by column index |
p.getRow = function ( index )
Returns a thyCollection of all specified row contents
index | The row position |
p.getRowElement = function ( index )
Returns the thyGridRow element that is in the specified position
When what you want is just the contents, please use thyGrid::getRow.
This method should be used ONLY by other widgets that wants to have access to data only available through the thyGridRow object
index | The row position |
p.getSelectedRowsIndexes = function ()
Returns a thyCollection with the selected row indexes
p.getSelectedRows = function ()
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected row.
p.getAllRows = function ()
Return a thyCollection with other thyCollections containing the elements of the entire thyGrid
p.getSelectedCells = function ()
Returns a thyCollection with the contents of the selected cells
p.getCellElement = function ( rIndex, cIndex )
Returns the thyGridCell element that resides on the specified location
If what you want is just the contents of the thyGridCell element, please use thyGrid::getCell.
This method should be used ONLY when the user wants to manipulate any property of the cell element.
rIndex | The row index |
cIndex | The col index |
p._addRowClasses = function ( row, rowIndex )
Add all classes that were appended to thyGrid to a Row
row | The thyGridRow element that will have the classes |
rowIndex | The index of the row |
p._addRowCellsClasses = function ( row )
Adds all classes that were appended to thyGrid to the cells of a row with their correct values
row | The thyGridRow element whose cells will have their classes set. |
p._removeRowClasses = function ( row, rowIndex )
Removes all classes that were appended to thyGrid from a Row
row | The thyGridRow element that will have its classes removed |
rowIndex | The index of the Row |
p._removeRowCellsClasses = function ( row )
Removes all classes that were appended to thyGrid from all Cells of a Row
row | The thyGridRow element that will have its classes removed |
p._updateRowName = function ( row, rowIndex )
Updates Row name to reflect its actual position
row | The thyGridRow that must have its name updated |
rowIndex | The position of the Row |
p._populateContents = function ( data )
Clear up the thyGrid and inserts new specified contents
data | Can be of 2 types: |
Removes every cell of the grid, including columns
p.cleanUp = function ()
Removes all grid rows
p.reset = function ()
Inserts a new column into the grid.
p.insertColumn = function ( title, col, index )
Inserts a new column in the next available position.
p.appendColumn = function ( title, col )
Moves a whole column from one position to another
p.moveColumn = function ( fromIndex, toIndex )
Returns a thyCollection of all specified column contents
p.getColumn = function ( index )
Returns the number of columns this grid has
p.getColumnsCount = function ()
Removes a column from Grid.
p.removeColumn = function ( index )
Removes all columns of the grid.
p.removeAllColumns = function ()
Searches for a specified string in the specified column
p.searchColumn = function ( str, col )
Inserts a Row on the specified position (or at the end, if no index specified
p.insertRow = function ( row, index )
Inserts a row at the end of the grid.
p.appendRow = function ( row )
Move a Row from one position to another and refreshes CSS Classes
p.moveRow = function ( fromIndex, toIndex )
Returns a thyCollection of all specified row contents
p.getRow = function ( index )
Returns the thyGridRow element that is in the specified position
p.getRowElement = function ( index )
Returns a thyCollection with the selected row indexes
p.getSelectedRowsIndexes = function ()
Returns a thyCollection composed of other thyCollections, each one with the contents of a selected row.
p.getSelectedRows = function ()
Returns the number of rows in Grid
p.getRowsCount = function ()
Return a thyCollection with other thyCollections containing the elements of the entire thyGrid
p.getAllRows = function ()
Removes all rows from Grid
p.removeAllRows = function ()
Remove all selected Rows from Grid
p.removeSelectedRows = function ()
Remove specified row from Grid and re-index rows
p.removeRow = function ( index )
Always selects a row instead of just a cell.
p.setSelectCellSelectRow = function ()
Returns the contents of a specified Cell
p.getCell = function ( rIndex, cIndex )
Returns a thyCollection with the contents of the selected cells
p.getSelectedCells = function ()
Returns the thyGridCell element that resides on the specified location
p.getCellElement = function ( rIndex, cIndex )
Change the contents of a specified cell.
p.changeCell = function ( content, rIndex, cIndex )
Returns the DOM object that holds children DOM objects
p._getDOMChildrenHolder = function ()
Overwritten method that adds the specified class to main, rows and cells
p._addCSSClass = function ( cssClass )
Overwritten method that removes the specified class from main, rows and cells
p._removeCSSClass = function ( cssClass )
Add all classes that were appended to thyGrid to a Row
p._addRowClasses = function ( row, rowIndex )
Adds all classes that were appended to thyGrid to the cells of a row with their correct values
p._addRowCellsClasses = function ( row )
Removes all classes that were appended to thyGrid from a Row
p._removeRowClasses = function ( row, rowIndex )
Removes all classes that were appended to thyGrid from all Cells of a Row
p._removeRowCellsClasses = function ( row )
Updates Row name to reflect its actual position
p._updateRowName = function ( row, rowIndex )
Clear up the thyGrid and inserts new specified contents
p._populateContents = function ( data )
Return all the contents of a grid
p._sweepOutContents = function ()