my-button.component.yml

Same filename in this branch
  1. 11.x core/modules/sdc/tests/modules/sdc_test/components/my-button/my-button.component.yml
  2. 11.x core/modules/sdc/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml
  3. 11.x core/modules/system/tests/modules/sdc_test/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/system/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml

File

core/modules/system/tests/modules/sdc_test_replacements/components/my-button/my-button.component.yml

View source
  1. $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json
  2. name: Button
  3. replaces: 'sdc_test:my-button'
  4. description: JavaScript enhanced button that tracks the number of times a user clicked it.
  5. libraryOverrides:
  6. dependencies:
  7. - core/once
  8. props:
  9. type: object
  10. required:
  11. - text
  12. properties:
  13. text:
  14. type: string
  15. title: Title
  16. description: The title for the button
  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.