Files
nirvana/assets/js/custom/documentation/forms/formrepeater/basic.js
T
2022-01-10 22:32:53 -08:00

36 lines
717 B
JavaScript

"use strict";
// Class definition
var KTFormRepeaterBasic = function () {
// Private functions
var example1 = function () {
$('#kt_docs_repeater_basic').repeater({
initEmpty: false,
defaultValues: {
'text-input': 'foo'
},
show: function () {
$(this).slideDown();
},
hide: function (deleteElement) {
$(this).slideUp(deleteElement);
}
});
}
return {
// Public Functions
init: function () {
example1();
}
};
}();
// On document ready
KTUtil.onDOMContentLoaded(function () {
KTFormRepeaterBasic.init();
});