initializeFormGroupClasses.ts 526 B

12345678910111213141516
  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. }
  9. export const initializeFormGroupClasses = (classes: FormGroupClassMap) => {
  10. formGroupClasses = classes
  11. }
  12. export const getFormGroupClasses = () => formGroupClasses