2024年5月15日发(作者:win7 双屏设置)
本文由我司收集整编,推荐下载,如有疑问,请与我司联系
如何在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的主体部分,它就可以工作了,但是不能放
入头。
Thanks a lot for your help.
非常感谢你的帮助。
div ng-controller=“myController”
div
script type=“text/ng-template” id=“group-
” 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=“$_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=“omHeaderOpen” template-url=“group-
” uib-accordion-heading {{name}} /uib-accordion-heading /div /uib-
accordion /div
var myApp = (‘myApp’,[‘rap’, ‘ngAnimate’, ‘ngTouch’]);
ller(‘myController’, function myController($scope) { $ =
[‘apple’,’banana’,’orange’]; $_fruit = function(name){ (name);
发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1715766174a2668400.html
评论列表(0条)