Dave's Brain

Browse - Programming Tips - How does the jQuery dataTables sDom parameter work?

Date: 2009dec15
Language: javaScript
Library: jQuery, datatables

Q.  How does the jQuery dataTables sDom parameter work?

A.  I found the docs confusing too until I found an explanation
from an author in the forums.  Rewritten a bit here:

Example:

"sDom": '<"top"i>rt<"bottom"flp><"clear">'
Gives:
'<' gives '<div>' '<"class"' gives '<div class="class">' '>' gives '</div>'
So the example above is really:
<div class="top"> i </div> rt <div class="bottom"> flp </div> <div class="clear"></div>
From here: http://datatables.net/forums/comments.php?DiscussionID=37

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.