Add thead/tbody/tfoot tags to the table element
Reported by Rusty Klophaus | June 16th, 2010 @ 08:40 AM | in 2.0.2
Mattias Holmlund to nitrogenweb
show details Jun 14 (2 days ago)
Attached is a patch that adds thead, tbody and tfoot tags to the
table element. It adds a header and a footer element to tables and
wraps the rows in a tbody according to HTML 4.01 and onwards. This
allows me to use jQuery Tablesorter (http://tablesorter.com) to sort my
tables.
This is my first patch to nitrogen, so I would appreciate feedback on the patch.
table { class="tablesorter", header=[
#tablerow { cells=[
#tableheader { text="Name" },
#tableheader { text="Location" }
]} ], rows=[ #tablerow { cells=[
#tablecell { text="Rusty" },
#tablecell { text="USA" }
]}, #tablerow { cells=[
#tablecell { text="Jon" },
#tablecell { text="Iceland" }
]}, #tablerow { cells=[
#tablecell { text="Martin" },
#tablecell { text="Germany" }
]} ]}.
Comments and changes to this ticket
-
Rusty Klophaus June 29th, 2010 @ 07:44 PM
- State changed from new to resolved
- Milestone order changed from 0 to 0
This has now been merged into the main branch.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Nitrogen Web Framework for Erlang