Skip to content

Commit 2ffc381

Browse files
bfederlevijayvenkat
authored andcommitted
multiEdit: support hiding fields dynamically via dataProvider
If 'hideFields' array is passed to .success(), then hide the field IDs specified.
1 parent f7177b4 commit 2ffc381

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎ui/scripts/network.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2763,7 +2763,8 @@
27632763
});
27642764

27652765
args.response.success({
2766-
data: loadBalancerData
2766+
data: loadBalancerData,
2767+
//hideFields: ['autoScale']
27672768
});
27682769
}
27692770
});

‎ui/scripts/ui/widgets/multiEdit.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,11 @@
10241024
$multi.find('th.add-user, td.add-user').detach();
10251025
$multiForm.find('tbody').detach();
10261026
}
1027+
if (args.hideFields) {
1028+
$(args.hideFields).each(function() {
1029+
$multi.find('th.' + this + ',td.' + this).hide();
1030+
});
1031+
}
10271032

10281033
_medit.refreshItemWidths($multi);
10291034
},

0 commit comments

Comments
 (0)