Is it possible to show/hide a widget from a custom script?
let form = getWidget('theForm');
form.someProperty? = someValue?;
success();
let form = getWidget('theForm');
form.someProperty? = someValue?;
success();
var myWidget = getWidget('myChart'), hideShowWidget = function (wdg, action) { var popupContainer = wdg.up('widget-popup'), livesInPopup = (!Valence.isEmpty(popupContainer)) ? true : false, actOn = (livesInPopup) ? popupContainer : wdg; if (!Valence.isEmpty(actOn[action]) && typeof actOn[action] === 'function') { actOn[action](); } }; hideShowWidget(myWidget, 'hide');
Comment