function HideButtonBasedOnViewSelected (selectedCtrl) {
var query = selectedCtrl.get_viewTitle();
if (query == 'Your View Name') {
return false;
}
else
return true;
}
This code is working good for classic UI but not working on UCI. please suggest me other option or code for this scenario.