User Tools

Site Tools


Sidebar

en:objects:table

table

Object for managing tables on the current page (TABLE tag)



Example of a table:
php
html
<table width="200" border="1"><tr><td><div align="center" id="345" >php</div></td><td><div align="center">html</div></td></tr></table>

Description
the TABLE Tag serves as a container for elements that define the table contents. Any table consists of rows and cells that are set using the tr and td tags. You can use the following elements inside table: caption, col, colgroup, tbody, td, tfoot, th, thead, and tr.

Tables with an invisible border have long been used for web page layout, allowing you to divide a document into modular blocks. This method of using tables was implemented on many sites, until it was replaced by a more modern way of layout using layers.

Learn more about the TABLE tag (source)



basic functionality
Export
Getting information on cells, rows and columns
Getting cell coordinates




Export

export_to_csv – export the entire table or part of it to csv format
export_to_xml – export the entire table or part of it to xml format



Getting information on cells, rows, and columns

get_cells_by_number – to obtain the number of table cells number
get_rows_by_number – get number of rows in the table by its number.
get_cols_by_number – get the number of columns of the table in her room

get_cell_by_number – to the text of the given cell (column and row) in the table with the specified number
get_cell_by_pos_by_number – get the text of selected cell (position) in the table with the given number

get_row_by_number – get the text of the specified string in the table with the specified number
get_col_by_number – get the text of the specified column in the table with the specified number
get_rows_cols_by_number – get the text of the specified part of the table with the specified number



Getting cell coordinates

get_cell_x_by_number – get the x coordinate of the cell (by row and column) from the table with the specified number
get_cell_x_by_inner_text – to obtain the x coordinate of the cell (line and column) in a table with the specified inner text.
get_cell_x_by_attribute – get the x coordinate of the cell (line and column) of a table with the specified value of the attribute

get_cell_y_by_number – get the y coordinate of the cell (line and column) the table with the given number
get_cell_y_by_inner_text – get the y coordinate of a cell (by row and column) from a table with the specified internal text
get_cell_y_by_attribute – get the y coordinate of a cell (by row and column) from a table with the specified attribute value

en/objects/table.txt · Last modified: 2020/10/06 18:12 (external edit)