checkbox.es6.js 282 B

123456789101112131415
  1. /**
  2. * @file
  3. * Defines checkbox theme functions.
  4. */
  5. (Drupal => {
  6. /**
  7. * Theme function for a checkbox.
  8. *
  9. * @return {string}
  10. * The HTML markup for the checkbox.
  11. */
  12. Drupal.theme.checkbox = () =>
  13. `<input type="checkbox" class="form-checkbox"/>`;
  14. })(Drupal);