initializeFormGroupClasses.ts 570 B

1234567891011121314151617
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FormGroupClassMap } from './types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let formGroupClasses: FormGroupClassMap = {
  5. container: 'form-group',
  6. help: 'form-group-help',
  7. dirtyMark: 'form-group-mark-dirty',
  8. bottomMargin: 'form-group-bottom-margin',
  9. }
  10. export const initializeFormGroupClasses = (classes: FormGroupClassMap) => {
  11. formGroupClasses = classes
  12. }
  13. export const getFormGroupClasses = () => formGroupClasses