首先,我正在使用外部框架(SoftwareAG webMethods CAF /小工具),该框架在模式窗口中显示我的页面。打开此窗口后,默认情况下它是折叠的,我必须单击按钮来扩展它。现在,我希望默认情况下会发生这种情况,但是我无法编辑框架代码。我所能做的就是在页面上调用JavaScript以获取getElementById
,我已经将其用于其他操作。例如,我需要自己处理关闭此窗口,所以我只需
document.getElementById("external-framework-close-btn").addEventListener("click", function(){
//my application methods are called from here
});
现在的问题是,折叠/扩展按钮被包裹成这样
<div data-ng-switch-default="data-ng-switch-default" class="ng-scope">
<div id="taskDetailsBack" class="tac icon-margin cp" data-ng-click="gadgetService.toggleInstanceModal('TASK_DETAILS_PANEL')">
<div class="hint--right bc-block" data-hint="Expand">
<img class="sideBarExpand" data-ng-show="gadgetService.isTaskDetailsExpanded == false || gadgetService.isTaskDetailsExpanded == 'false'" src="" alt="">
</div>
<div class="hint--right bc-block" data-hint="Collapse">
<img class="sideBarCollapse ng-hide" data-ng-show="gadgetService.isTaskDetailsExpanded == true || gadgetService.isTaskDetailsExpanded == 'true'" src="" alt="">
</div>
<hr class="hr-margin">
</div>
</div>
有没有机会我可以访问它,并使每个模式窗口默认显示为扩展状态?