hi,我试图为手风琴实现全部折叠和全部扩展功能。它的工作有时(但并非总是)意味着用户是否尝试扩展单个组并应用全部折叠。下面是我正在尝试的HTML代码。我需要注意一些额外的步骤才能使它正常工作。
<uib-accordion close-others="false" ng-repeat="(key,value) in FORM_DATA">
<div uib-accordion-group class="panel-primary" is-open="collapsed">
<uib-accordion-heading>{{key | transformlabel}}<i class="fa fa-
chevron- right pull-right"></i>
</uib-accordion-heading>
<div class="form-group">
<div class="col-sm-6" ng-repeat="(intkey,intvalue) in value">
<div class="col-sm-6">
<label class="control-label">{{intkey | transformlabel}}</label>
</div>
<div class="col-sm-6">
<input readonly type="text" ng-model="intvalue">
</div>
</div>
</div>
</div>
</uib-accordion>