INNER CODE UNIT · JavaScript
NLField
mikepenz/AboutLibraries · DEV/definition-file-builder/js/nlform.js:50
function NLField( form, el, type, idx ) {
this.form = form;
this.elOriginal = el;
this.pos = idx;
this.type = type;
this._create();
this._initEvents();
}
NLField.prototype = {
_create : function() {
if( this.type === 'dropdown' ) {
this._createDropDown();
}
else if( this.type === 'input' ) {
this._createInput();
}
},