timekit-io / booking-js

:date: Make a beautiful embeddable booking widget in minutes
https://developers.timekit.io/docs/booking-widget-v2
MIT License
2.42k stars 189 forks source link

How to override the rendered `booked-email` element? #247

Open gustiando opened 2 years ago

gustiando commented 2 years ago

Hi, any ideas on to easily override the booked-email class in the span tag from booking-js? Is it configurable?

https://github.com/timekit-io/booking-js/blob/e2c3a29efeb510f81cd2b71d71eeea54d9d78131/src/render.js#L587

We'd like to add more classes for data obfuscation and avoid tracking. Because it's sensitive.

So in the end we'd like to have <span class='booking-email anonymize-this-info'></span>' as one example.

We're having to create our own custom logic to manipulate the DOM which looks like a lot of unnecessary code if we could instead plug that into the element. Is it possible or any suggestions on an "easier" way to do so?