uxxman / angular-accordion Goto Github PK
View Code? Open in Web Editor NEWA simple angular directive for adding accordion UI element
License: MIT License
A simple angular directive for adding accordion UI element
License: MIT License
You forgot to add your css, which is needed for the workings of your module. Use the following section for main (also in "_bower.json" !) to accomplish that:
"main": [
"css/ang-accordion.css",
"js/js/ang-accordion.js"
],
Would be great to add the ability to prevent an accordion from being clickable (ie. depending on the state of the app). Possibly add styling to indicate it is disabled.
Any chance you can do this or look at a P.R?
Hello,
using bower for dependency management I currently have to use something like
"ang-accordion": "git://github.com/sherwaniusman/angular-accordion.git"
It would be nice if you could start tagging your versions, so I could use
"ang-accordion": "1.0.0"
instead.
In addition it might be necessary to change the name in your bower.json to "ang-accordion" as this is where http://bower.io/search/ finds your great package.
Regards, Martin
Hello, and thank you for this code. I greatly appreciate it. I'm teaching myself AngularJS and am using it to rebuild a website, and found your library to duplicate what I was doing with jQuery-UI on the old website. I have found a problem, though, and since I'm a noob, I'm not sure how to fix it.
I have the site up at a temporary location right now. I have one page (fpcdev.azurewebsites.net/about) that did have two separate accordions, but when viewed on mobile, the top accordion did not function. I changed it all to be in one accordion, but with that, none of it works on mobile. I can duplicate this in a desktop browser by making the browser narrow. It seems to be at the point where the bootstrap class changes from "col-md-8 col-md-offset-2" to "col-xs-12" where the problem occurs. If I remove the col-xs-12 from the class of the div, the accordion works properly.
Do you have any suggestions for me? I greatly appreciate it.
Z-index issue in css.
Would be nice to be able to include this in a bower workflow.
I am using the accordion on a dashboard:
<table class="table grey-background" ng-hide="newSurveyFromTemplate"> <thead> <tr><!-- headers --> <th>Select a Template to Use</th> </tr> </thead> <ang-accordion> <tr class="survey-template" ng-repeat="template in templates" id="{{$index}}"> <collapsible-item item-title="{{template.name}}"> <button ng-click="useTemplate(template)">Use</button> <div class="template-question" ng-repeat="q in template.questions"> {{q}} </div> </collapsible-item> </tr> </ang-accordion> </table>
I initially included the library like this:
.module('app',['ngAnimate', "ngSanitize", "mgcrea.ngStrap", 'angular-google-analytics', 'ngCookies', 'ngclipboard', 'ng.deviceDetector', 'angAccordion'])
Any idea why it can't find the controller?
when i tried to use the initially-open="true" while using ng-repeat to get the data for the itemTitle.It opens all the elements instead of the only one element
Using the NPM repository pulls in a 0KB js file
Hi,
I'd like to control the accordion programmatically with something like:
HTML:
JS:
vm.angAccordion.isOpenned = false;
Is there something I'm missing that allows for this already?
Please provide a way so that we can customize my collapsible style. I need to change the height of collapsible and it makes my title outside the collapsible.
Would be nice if we could use the lib as is:
import angAccordion from 'ang-accordion';
angular.module('myApp', [angAccordion]);
instead of the current:
import 'ang-accordion';
angular.module('myApp', ['angAccordion']);
If you are ok with this, I'll be happy to make a PR. ๐
Thanks for your library.
In my app the tabs tooltips are not needed. Could we make the tooltips an optional feature?
Thanks.
Even if the value in initially-open is false, it opens up the collapsible-item.
I need put different icons for each collapsible-item. Do you have any idea as i make this? Currently it's possible?
is there any way to add any icon to the title ?
i have input type="text " inside collapsible-item. it doens bind to ng-model .
outside collapsible-item the text box is working perfectly .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.