Scorollpanes in template field DataTable Type?
Scorollpanes in template field DataTable Type?

Hi,
How can i apply a vertical scroll on a Field of DataTable type in a Template?
This is what i am doing, probably wrong, please help...
var template_table = lineitemsEditor.field('lineitem.stock_id').dt();
template_table.scrolly = "200px";
template_table.paging = false;
template_table.scrollCollapse = true;
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The
datatable
field type accepts aconfig
object which can be used to pass DataTables options to the table that is created. So you might do:when you add the field.
Allan
Awesome, thanks!