Simple Solution for Conditional Rendering on Width

Pat VachonPat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
edited August 9, 2019 in Ideas
Skuid, please implement this as declarative.
(function(skuid){   var $ = skuid.$;   $(document.body).one('pageload',function(){    var ADashUIOnly = skuid.$M('ADashUIOnly'),        row = ADashUIOnly.getFirstRow();        window.addEventListener("resize", setWidth);        function setWidth(){        ADashUIOnly.updateRow(row,'minWidth',$(window).width());    }   });  })(skuid);

3 votes

Under Consideration ยท Last Updated


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!