Sha256: 5279fe450a7525a068f7a1cb45489a418d3d975eafc9641adb43082917e6815d

Contents?: true

Size: 599 Bytes

Versions: 4

Compression:

Stored size: 599 Bytes

Contents

var CoreTable = (function () {

  function initializeTableFixedHead (table) {
    var tableElement = $(table).find('.elements-table__table')
    $(tableElement).floatThead({
      scrollContainer: function (table) {
        return table.closest('.elements-table--fixed')
      }
    })
  }
  
  function _initTableFixedHead () {
    $('.elements-table.elements-table--fixed').each(function () {
      initializeTableFixedHead(this)
    })
  }

  // Init:
  function init () {
    _initTableFixedHead()
  }

  return {
    init: init,
    initializeTableFixedHead: initializeTableFixedHead
  }

})()

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lato_core-2.2.2 app/assets/javascripts/lato_core/modules/CoreTable.js
lato_core-2.2.0 app/assets/javascripts/lato_core/modules/CoreTable.js
lato_core-2.1.4 app/assets/javascripts/lato_core/modules/CoreTable.js
lato_core-2.1.3 app/assets/javascripts/lato_core/modules/CoreTable.js