js_example.libraries.yml

Same filename in other branches
  1. 4.0.x modules/js_example/js_example.libraries.yml
modules/js_example/js_example.libraries.yml

File

modules/js_example/js_example.libraries.yml

View source
  1. # A pure JavaScript accordion modified form
  2. # https://codepen.io/sureshrkm/pen/ZbzBpr.
  3. js_example.accordion:
  4. js:
  5. js/accordion.js: {}
  6. css:
  7. component:
  8. css/accordion.css: {}
  9. # Show how weights work.
  10. js_example.weights:
  11. # Add css file.
  12. css:
  13. component:
  14. css/jsweights.css: {}
  15. # Add js files.
  16. js:
  17. # weight is used as example attribute, but please avoid it and instead use
  18. # dependencies for order loading.
  19. js/red.js: { weight: -4 }
  20. js/blue.js: { weight: -2 }
  21. js/green.js: { weight: -1 }
  22. js/brown.js: { weight: -2 }
  23. js/black.js: { weight: -1 }
  24. js/purple.js: { weight: -5 }
  25. dependencies:
  26. - core/jquery
  27. - core/drupalSettings