{"id":13701570,"url":"https://github.com/uxxman/angular-accordion","last_synced_at":"2025-12-12T04:16:53.993Z","repository":{"id":18791200,"uuid":"22004926","full_name":"uxxman/angular-accordion","owner":"uxxman","description":"A simple angular directive for adding accordion UI element","archived":false,"fork":false,"pushed_at":"2018-04-03T08:10:00.000Z","size":32,"stargazers_count":54,"open_issues_count":10,"forks_count":35,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-29T05:49:07.462Z","etag":null,"topics":["accordion","angular","collapsible","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uxxman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-19T07:59:56.000Z","updated_at":"2021-04-28T08:49:26.000Z","dependencies_parsed_at":"2022-09-12T23:50:32.336Z","dependency_job_id":null,"html_url":"https://github.com/uxxman/angular-accordion","commit_stats":null,"previous_names":["uxman-sherwani/angular-accordion","sherwaniusman/angular-accordion"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxxman%2Fangular-accordion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxxman%2Fangular-accordion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxxman%2Fangular-accordion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uxxman%2Fangular-accordion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uxxman","download_url":"https://codeload.github.com/uxxman/angular-accordion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251446167,"owners_count":21590668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accordion","angular","collapsible","javascript"],"created_at":"2024-08-02T20:01:49.612Z","updated_at":"2025-12-12T04:16:48.950Z","avatar_url":"https://github.com/uxxman.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"angular-accordion\n=================\n\n\u003e A simple and light weight angular directive for adding accordion UI element.\n\nBuilt using core angular and css transitions. Works smoothly on desktop and mobile browsers without any flickering in transitions. No jquery, bootstrap or any other dependency required.\n\n## Usage\n\nInclude the required libraries\n```html\n\u003c!-- For simple styling and transitions, include \"angular-accordion.css\". You can edit styles to meed your look and feel --\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"../css/ang-accordion.css\"\u003e\n\n\u003c!-- Then include \"angular.js\" and \"angular-accordion.js\" to your page --\u003e\n\u003cscript src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.15/angular.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"../js/ang-accordion.js\"\u003e\u003c/script\u003e\n```\n\nDeclare a dependency on the `angAccordion` module\n``` javascript\nvar app = angular.module('app', ['angAccordion']);\n```\n\nOr ES2015+ users can import it as is:\n```javascript\nimport ngAccordion from 'ang-accordion';\n\nangular.module('app', [ngAccordion]);\n```\n\nThat's all you need to start adding accordion UI element to your page. Project files are also available through your favourite package manager:\n* **Bower**: `bower install ang-accordion`\n\n## Html Markup\n\n```html\n\u003cang-accordion\u003e\n    \u003ccollapsible-item item-title=\"Some Heading\"\u003e\n        \u003cdiv\u003eThis is regular html code\u003c/div\u003e\n    \u003c/collapsible-item\u003e\n\n    ... \u003c!-- More collapsible items --\u003e\n\u003c/ang-accordion\u003e\n```\n\n## Options\n+ **Open one collapsible at a time:**\nBy default all collapisible items open/close irrespective of other collapsible items. If you want to open only one collapsible item at a time, use the following option\n\n```html\n\u003cang-accordion one-at-a-time=\"true\"\u003e\n    ...\n\u003c/ang-accordion\u003e\n```\n\n+ **Set collapsible item to be initially openned:**\nIf you want collapsible item to be open when initially rendered on the page, use this option\n\n```html\n\u003ccollapsible-item item-title=\"Heading 1\" initially-open=\"true\"\u003e\n    ...\n\u003c/collapsible-item\u003e\n```\n\n+ **Set right/down icon and its position:**\nYou can add open and collapsed icon to show on title of a collapsible item and also define its position (defeault is right).\n\n```html\n\u003cang-accordion icon-position=\"left\" close-icon-url=\"../img/right-icon.png\" open-icon-url=\"../img/down-icon.png\"\u003e\n    ...\n\u003c/ang-accordion\u003e\n```\nIf you are using bootstrap Glyphicons or any other font icons, you can use them as icon in title as well.\n\n```html\n\u003cang-accordion close-icon-class=\"fa fa-chevron-right\" open-icon-class=\"fa fa-chevron-down\"\u003e\n    ...\n\u003c/ang-accordion\u003e\n```\n+ **Disabling a collapsible item:**\nYou can also disable a collapsible item so, the user cannot open it.\n\n```html\n\u003ccollapsible-item item-title=\"Heading 1\" item-disabled=\"true\"\u003e\n    ...\n\u003c/collapsible-item\u003e\n```\n\n## Author\n\n**Muhammad Usman** (http://github.com/uxman-sherwani)\n\n## Copyright and license\n\n    The MIT License\n\n\tCopyright (c) 2014 Will Palahnuk\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxxman%2Fangular-accordion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuxxman%2Fangular-accordion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuxxman%2Fangular-accordion/lists"}