You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
641 B

/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2016 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
$.components.register("scrollable", {
mode: "init",
defaults: {
namespace: "scrollable",
contentSelector: "> [data-role='content']",
containerSelector: "> [data-role='container']"
},
init: function(context) {
if (!$.fn.asScrollable) return;
var defaults = $.components.getDefaults("scrollable");
$('[data-plugin="scrollable"]', context).each(function() {
var options = $.extend({}, defaults, $(this).data());
$(this).asScrollable(options);
});
}
});