Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function inputFieldSelect(field, ctrl) {
- return m(".inline-edit", [
- m("select", {
- name: field.Name,
- id: field.Name,
- value: field.Value,
- required: field.IsMandatory ? "required" : "false",
- config: initSelectUserFields,
- onchange: function (e) {
- var that = this;
- field.Value = e.target.value;
- ctrl.putFieldInDb(e, that)
- }
- }, [
- _.map(field.FieldOptions, function (option, key) {
- return m("option", { value: option.Value }, option.Label)
- })
- ])
- ])
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement