extjs4 - swapStyleSheet in extjs using absolute path -
i using multiple namespaces in application , able utilize same stylesheet in different parts of app. when load extjs app in root route ("/"), , phone call next method
ext.util.css.swapstylesheet("theme","/ext-4.1.1a/resources/css/ext-all-access.css");
, extjs appropriately load stylesheet at:
/ext-4.1.1a/resources/css/ext-all-access.css
however if loading extjs app within view @ "/admin/pages", extjs effort load stylesheet @
/admin/ext-4.1.1a/resources/css/ext-all-access.css
any thought how around this?
you can seek passing total url, like:
ext.util.css.swapstylesheet("theme", window.location.origin + "/ext-4.1.1a/resources/css/ext-all-access.css");
extjs4
No comments:
Post a Comment