Welcome Guest, Not a member yet? Register   Sign In
Set ID on HTML Table Rows
#1

[eluser]Unknown[/eluser]
Hi all,

I need do define a unique ID on every single html table row.

I'm using add_row method to set the cells data.

I tried the template option too, but i cant figure any way of set unique info on each table row <TR> using Table Class.

Can anyone help me ?

Thanks in advance.

PV
#2

[eluser]xwero[/eluser]
i think the easiest way to do it is to have a foreach loop in your view file. The table class as it is uses three lines of code at least, a foreach loop has three lines too and it's more flexible.
#3

[eluser]Unknown[/eluser]
Hi,

Thanks for your response.

I think i need to have diferent strategies for diferent kind of tables. Right?

The HTML table class has some limitatios.

Thanks

Pedro
#4

[eluser]xwero[/eluser]
The table class is very basic. I put out some ideas how to configure a more useful table class in another thread and i'm willing to build this library but i have so little time and i'm working on another library right now. Maybe i pick it up after the first library is finished.




Theme © iAndrew 2016 - Forum software by © MyBB