initial commit
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define('/Plugin/floatthead', ['exports', 'jquery', 'Plugin'], factory);
|
||||
} else if (typeof exports !== "undefined") {
|
||||
factory(exports, require('jquery'), require('Plugin'));
|
||||
} else {
|
||||
var mod = {
|
||||
exports: {}
|
||||
};
|
||||
factory(mod.exports, global.jQuery, global.Plugin);
|
||||
global.PluginFloatthead = mod.exports;
|
||||
}
|
||||
})(this, function (exports, _jquery, _Plugin2) {
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _jquery2 = babelHelpers.interopRequireDefault(_jquery);
|
||||
|
||||
var _Plugin3 = babelHelpers.interopRequireDefault(_Plugin2);
|
||||
|
||||
var NAME = 'floatThead';
|
||||
|
||||
var FloatThead = function (_Plugin) {
|
||||
babelHelpers.inherits(FloatThead, _Plugin);
|
||||
|
||||
function FloatThead() {
|
||||
babelHelpers.classCallCheck(this, FloatThead);
|
||||
return babelHelpers.possibleConstructorReturn(this, (FloatThead.__proto__ || Object.getPrototypeOf(FloatThead)).apply(this, arguments));
|
||||
}
|
||||
|
||||
babelHelpers.createClass(FloatThead, [{
|
||||
key: 'getName',
|
||||
value: function getName() {
|
||||
return NAME;
|
||||
}
|
||||
}], [{
|
||||
key: 'getDefaults',
|
||||
value: function getDefaults() {
|
||||
return {
|
||||
position: 'auto',
|
||||
top: function top() {
|
||||
var offset = (0, _jquery2.default)('.page').offset();
|
||||
|
||||
return offset.top;
|
||||
},
|
||||
responsiveContainer: function responsiveContainer($table) {
|
||||
return $table.closest('.table-responsive');
|
||||
}
|
||||
};
|
||||
}
|
||||
}]);
|
||||
return FloatThead;
|
||||
}(_Plugin3.default);
|
||||
|
||||
_Plugin3.default.register(NAME, FloatThead);
|
||||
|
||||
exports.default = FloatThead;
|
||||
});
|
||||
Reference in New Issue
Block a user