Skip to content

The open alternative to Salesforce, designed for AI.

300 B
Raw Blame
import { camelToKebab } from 'twenty-shared/utils';

import { DATA_ATTRIBUTE_PREFIX } from '@/polyfills/dom/constants/DataAttributePrefix';

export const convertDatasetPropertyToDataAttributeName = (
  datasetProperty: string,
): string => `${DATA_ATTRIBUTE_PREFIX}${camelToKebab(datasetProperty)}`;