angularjs - How to disable clicking on an accordion group heading? -
this cut down version of accordion example here.
<accordion> <accordion-group heading="static header"> content straight in template. </accordion-group> </accordion>
how possible disable clicking on accordion group heading. tried ng-disabled=true on accordion element , accordion-group element not work.
according source there isdisabled property on accordeon group, used in toggle function. should way disable panel.
https://github.com/angular-ui/bootstrap/blob/master/src/accordion/accordion.js
the toggle function:
scope.toggleopen = function() { if ( !scope.isdisabled ) { scope.isopen = !scope.isopen; } };
edit: not part of 0.10 version using, have main version, or make change yourself.
Comments
Post a Comment