36 lines
717 B
JavaScript
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();
|
|
});
|