editing scrollXInner Value

editing scrollXInner Value

srinathsrinath Posts: 3Questions: 0Answers: 0
edited October 2011 in Feature requests
Hi,
Is there any way that i'll be able edit the scrollXinner value and set it to a new value when a function is executed

Replies

  • bugreportbugreport Posts: 10Questions: 0Answers: 0
    This will do :

    $.fn.dataTableExt.oApi.UpdateScrolX = function (oSettings, width)
    {
    //var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
    if(width != "")
    {
    oSettings.oScroll.sXInner= width;
    }
    this.fnDraw();
    }

    annd call it using

    var oTable = $('#dataTabel').dataTable();
    oTable.UpdateScrolX("100%");
  • allanallan Posts: 63,488Questions: 1Answers: 10,467 Site admin
    Nice used of the API options :-)

    Allan
This discussion has been closed.