mirror of https://gitee.com/bigwinds/arangodb
added SELECT2 entry for modal view
This commit is contained in:
parent
fb3eab315d
commit
ed30df6c17
|
@ -50,6 +50,7 @@
|
|||
TEXT: "text",
|
||||
PASSWORD: "password",
|
||||
SELECT: "select",
|
||||
SELECT2: "select2",
|
||||
CHECKBOX: "checkbox"
|
||||
},
|
||||
closeButton: {
|
||||
|
@ -105,6 +106,18 @@
|
|||
return obj;
|
||||
},
|
||||
|
||||
createSelect2Entry: function(id, label, value, info, placeholder, mandatory) {
|
||||
var obj = createTextStub(this.tables.SELECT2, label, value, info);
|
||||
obj.id = id;
|
||||
if (placeholder) {
|
||||
obj.placeholder = placeholder;
|
||||
}
|
||||
if (mandatory) {
|
||||
obj.mandatory = mandatory;
|
||||
}
|
||||
return obj;
|
||||
},
|
||||
|
||||
createPasswordEntry: function(id, label, value, info, placeholder, mandatory) {
|
||||
var obj = createTextStub(this.tables.PASSWORD, label, value, info);
|
||||
obj.id = id;
|
||||
|
|
Loading…
Reference in New Issue