my-button.component.yml

Same filename in this branch
  1. 11.x core/modules/sdc/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml
  2. 11.x core/modules/system/tests/modules/sdc_test/components/my-button/my-button.component.yml
  3. 11.x core/modules/system/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml
Same filename and directory in other branches
  1. 10 core/modules/sdc/tests/modules/sdc_test/components/my-button/my-button.component.yml
  2. 10 core/modules/sdc/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml
core/modules/sdc/tests/modules/sdc_test/components/my-button/my-button.component.yml

File

core/modules/sdc/tests/modules/sdc_test/components/my-button/my-button.component.yml

View source
  1. $schema: https://git.drupalcode.org/project/sdc/-/raw/1.x/src/metadata.schema.json
  2. name: Button
  3. description: JavaScript enhanced button that tracks the number of times a user clicked it.
  4. libraryOverrides:
  5. dependencies:
  6. - core/once
  7. props:
  8. type: object
  9. required:
  10. - text
  11. properties:
  12. text:
  13. type: string
  14. title: Title
  15. description: The title for the button
  16. minLength: 2
  17. examples:
  18. - Press
  19. - Submit now
  20. iconType:
  21. type: string
  22. title: Icon Type
  23. enum:
  24. - power
  25. - like
  26. - external

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.