Adding Positional Attributes or Classes to .gjs-tools for Conditional Badge Styling in GrapesJS #5964
fredrickreuben
started this conversation in
General
Replies: 1 comment 1 reply
-
const onToolbarStyleChange = useCallback(() => {
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I add an attribute or class to the parent div of the badge, i.e., .gjs-tools, to indicate its position relative to the selected element? For example, I want to add an attribute like placement='top' or placement='bottom', or a class like top or bottom, so that I can apply different CSS styles based on the badge's position. My goal is to be able to style the badge differently depending on its position.
Beta Was this translation helpful? Give feedback.
All reactions