Scorollpanes in template field DataTable Type?

Scorollpanes in template field DataTable Type?

eavestonecreativeeavestonecreative Posts: 2Questions: 1Answers: 0

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

Answers

  • allanallan Posts: 61,635Questions: 1Answers: 10,092 Site admin
    Answer ✓

    The datatable field type accepts a config object which can be used to pass DataTables options to the table that is created. So you might do:

    config: {
      scrollY: 200,
      paging: false,
      scrollCollapse: true
    }
    

    when you add the field.

    Allan

  • eavestonecreativeeavestonecreative Posts: 2Questions: 1Answers: 0

    Awesome, thanks!

Sign In or Register to comment.