kongulov / nova-tab-translatable

This package contains a NovaTabTranslatable class you can use to make any Nova field type translatable with tabs.
MIT License
79 stars 17 forks source link

Adding the data attribute to make it easier to potentially modify the DOM #30

Closed ajotka closed 1 year ago

ajotka commented 1 year ago

Hi! First of all, thanks for your work. I use this plugin in almost every Laravel project!

I came across a case where I have to edit selected content with JS. The problem has come up when for one tab (for one language) several divs are generated at the same level, without indicating what language they are for. (screen containing DOM below) Due to the fact that I had no way to "catch" these divs, I thought about adding a data attribute (data-lang & data-langfor). You might like the idea :)

Zrzut ekranu z 2022-12-15 10-56-00

kongulov commented 1 year ago

@ajotka Thank you very much for supporting the package