benzelano / test_lh_import

1 stars 0 forks source link

Question about footer #198

Closed benzelano closed 13 years ago

benzelano commented 13 years ago

closer opened this issue

Hello,

I want to insert paging in TFOOT tag. Now I using following code:

@@@ footer.cell ’paging’, "

#{will_paginate @messages, :previous_label => ’<’, :next_label => ’>’}
", {:colspan => "6"} @@@

but I think that it is not good style.

How about create additional property ’content’ and use this way:

@@@ footer.content = "

#{will_paginate @messages, :previous_label => ’<’, :next_label => ’>’}
"; @@@

ant that code will generate following markup:

@@@ ...

...

... @@@

Or may be you known other way?

Thanks

original LH ticket

This ticket has 0 attachment(s).

benzelano commented 13 years ago

(from [f06b813b71a974b1a58bff63f6669ce3bc26726f]) Automatically determine the colspan for the last footer to match the number of headers [#3 state:resolved] http://github.com/pluginaweek/table_helper/commit/f06b813b71a974b1a58bff63f6669ce3bc26726f

benzelano commented 13 years ago

Thanks for the idea. You should now be able to define footers and it’ll automatically determine the colspan.