initializeFieldLinkClasses.ts 510 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { FieldLinkClassMap } from './types.ts'
  3. // Provide your own map with the following keys, the values given here are just examples.
  4. let linkClasses: FieldLinkClassMap = {
  5. container: 'field-link-container',
  6. base: 'field-link-base',
  7. link: 'field-link-link',
  8. }
  9. export const initializeFieldLinkClasses = (classes: FieldLinkClassMap) => {
  10. linkClasses = classes
  11. }
  12. export const getFieldLinkClasses = () => linkClasses