ScrollY crashes with sDom
ScrollY crashes with sDom
riceirolve
Posts: 10Questions: 3Answers: 1
im having problem to use both at same time
if i just put "scrollY": "500px" it works perfectly, but when i use "sDom": '<"#paginacao-right"p><"#paginacao-center"l><"#paginacao-left"i>' then scrollY crash (but the sDom works with or without scrollY)
code:
$(document).ready(function() {
$('#example').DataTable( {
"scrollY": "500px",
"sDom": '<"#paginacao-right"p><"#paginacao-center"l><"#paginacao-left"i>'
} );
} );
This discussion has been closed.
Answers
Can you link to a test case showing the issue, per the forum rules please.
Allan
allan, sorry for yesterday, i was tired.
i woke up today rested and maked a lot of tests and found my error:
when i dont put "t" on "dom": 'lrtip' (like "dom": 'lrip') then ScrollY doesnt work
its just that and i im not sure if is datatables problem, i think was my mistake
The
t
option is required - it is the table :-).I should perhaps put an error catch in for that state...
Allan