mirror of https://github.com/apache/cloudstack.git
multiEdit widget: Support field pre-filter
If adding a 'fieldPreFilter' option to a multiEdit, the returned array specifies field IDs to be hidden.
This commit is contained in:
parent
bbfb13a1d9
commit
2bb5cb024f
|
|
@ -2417,6 +2417,13 @@
|
|||
}
|
||||
},
|
||||
multipleAdd: true,
|
||||
fieldPreFilter: function(args) {
|
||||
var context = args.context;
|
||||
var fields = args.fields;
|
||||
|
||||
// Returns fields to be hidden
|
||||
return [];
|
||||
},
|
||||
fields: {
|
||||
'name': { edit: true, label: 'label.name', isEditable: true },
|
||||
'publicport': { edit: true, label: 'label.public.port' },
|
||||
|
|
|
|||
Loading…
Reference in New Issue