Keep custom Editor layout from flashing before table loads? Chrome
Keep custom Editor layout from flashing before table loads? Chrome
Enaldi
Posts: 6Questions: 2Answers: 1
What's the best way to keep a custom Editor template from displaying briefly on the page before the main datatable is drawn? I can see this happening even in the example: https://editor.datatables.net/examples/simple/template.html
Edit: I can see this happening in Chrome. I don't think it's happening in IE (but hard to tell, because our IE is sluggish.)
Thanks in advance!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Add
style="display:none"
as an attribute to the element.You might not see it in IE, ironically, because it is sluggish. It doesn't have time to redraw before Editor has removed it!
Regards,
Allan
Thanks! Just setting the style alone hid the content from my editor form as well, so I used a class that I can remove when the editor opens:
$('.vipNoDisplay').removeClass('vipNoDisplay');
Ah - thanks for pointing that out. I had thought Editor would remove the hidden display. i'll look into that!
Regards,
Allan