Dave's Brain

Browse - programming tips - datatables sdom parameter

Date: 2009dec15
Language: javaScript

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
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, 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.