本文由我司收集整编,推荐下载,如有疑问,请与我司联系
如何在uibl
如何在uibl -accordion-group标题上放置一个close (X)按钮?[英]How can I put a close (X) button on uib-accordion-group header? I am trying to put a close (x) button at the uib-accordion-group. The button shows with the below code but nothing happens when you clock the button.
 我正在尝试在uib-accordion组中设置一个close (x)按钮。按钮显示的是下面的代码,但是当您按下按钮时什么也没有发生。
  IF I put a button in the body part of uib-accordion it works, but unable to put in the header.
 如果我将一个按钮放在uib-accordion的主体部分,它就可以工作了,但是不能放入头。
animate下载安装
  Thanks a lot for your help.
 非常感谢你的帮助。
 div ng-controller=“myController”  script type=“text/ng-template” id=“group-template.html”  div    a href
tabindex=“0” ng-click=“toggleOpen()” uib-accordion-transclude=“heading”  span uib-accordion-header ng-class=“{‘text-muted’: isDisabled}”  {{heading}} /span  button type=“button” aria-label=“Close” ng- click=“$ve_fruit(name)”  span times; /span  /button  /h4  /div  div uib-collapse=“!isOpen”  div ng-transclude /div  /div
 div ng-repeat=“name in names”  uib-accordion close-others=“oneAtATime”  div uib-accordion-group is-open=“status.isCustomHeaderOpen” template-url=“group-template.html”  uib-accordion-heading  {{name}} /uib-accordion-heading  /div  /uib-accordion  /div
 var myApp = dule(‘myApp’,[‘ui.bootstrap’, ‘ngAnimate’,  ‘ngTouch’]); ller(‘myController’, function myController($scope) { $scope.names = [‘apple’,’banana’,’orange’]; $ve_fruit = function(name){ window.alert(name);

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。