What happened to the public API LABKEY.ext.Utils.resizeToViewport() ?! | Nick Kerr | 2014-08-13 18:06 |
Status: Closed | ||
Hi Leo, Yup, it's still there! Since your are running the latest/greatest I'll mention that we are moving towards more explicit requests for our Ext 3 based APIs. On the trunk this means that we no longer handout these APIs to all pages. There are a couple options for you: a) If you don't want to change much of anything, go to 'Admin Console' -> 'Site Settings' and check the box for "Require ExtJS v3.x based Client API be loaded on each page". b) If you want to move your views along with us, you can keep the option above unchecked and then explicitly require either "clientapi/ext3" in your view XML's or on the page you can wrap dependent code to ensure that the dependencies are loaded. For example: LABKEY.requiresExt3ClientAPI(true, function() { /* Your code or callback where you are ensured the files are loaded */ }, scope); I'd recommend the XML pattern however, so that your client-side dependencies are handled on the server. Thanks, Nick |
||