Download the PHP package davide-casiraghi/bootstrap-accordion-integrator without Composer
On this page you can find all versions of the php package davide-casiraghi/bootstrap-accordion-integrator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davide-casiraghi/bootstrap-accordion-integrator
More information about davide-casiraghi/bootstrap-accordion-integrator
Files in davide-casiraghi/bootstrap-accordion-integrator
Package bootstrap-accordion-integrator
Short Description Add accordions in your application. The accordions are based on the Bootstrap 4 collapse component.
License MIT
Informations about the package bootstrap-accordion-integrator
Bootstrap 4 Accordion Integrator
Bootstrap 4 Accordion Integrator is a PHP library to add accordions in your application.
The accordions are based on the Bootstrap 4 collapse component.
The library replace all the occurances of this snippet
With the HTML code of a bootstrap 4 accordion.
Installation
To use the package you should import it trough composer.
Import the scss files
Add this line to your resources/sass/app.scss file:
and then run in console:
Usage
To replace all the occurrance of the accordion snippets:
or using the facade
Icon styles (open/close)
At the moment are available these icon styles that can be specified when the class get instantiated
- caret-svg (default - use svg with mask-image)
- angle-svg (use svg with mask-image)
- plus-minus-circle (use default font)
- angle-fontawesome-pro (use Font Awesome Pro 5 font-family)
- angle-fontawesome-free (use Font Awesome Free 4.7.0 font-family)
- caret-fontawesome-pro (use Font Awesome Pro 5 font-family)
- caret-fontawesome-free (use Font Awesome Free 4.7.0 font-family)
To use FontAwesome styles you need FontAwesome already loaded in your application.
Load the CSS and JS files
Without Laravel
You can import the JS and the CSS files in the vendor/bootstrap-accordion/ folder.
With Laravel
Publish the JS, CSS and IMAGES
It's possible to customize the scss and the js publishing them in your Laravel application.
This command will publish in your application this folders:
- /resources/scss/vendor/bootstrap-accordion/
- /resources/js/vendor/bootstrap-accordion/
- /public/vendor/bootstrap-accordion-integrator/images/
Load the JS file
In your app.js file you can require the accordion.js file before the Vue object get instanciated:
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.