What is the right syntax for data-gjs-stylable? #3474
-
Hi everyone, I'm trying to understand which is the right syntax for data-gjs-stylable, I tried the following, but none is functioning: data-gjs-stylable="'width','margin','margin-top','margin-left','margin-right','margin-bottom'" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This should work |
Beta Was this translation helpful? Give feedback.
-
ah ok, this is related to the JSON parser JSON.parse( |
Beta Was this translation helpful? Give feedback.
ah ok, this is related to the JSON parser
JSON.parse(
["key1", "key2"]
) // okJSON.parse(
['key1', 'key2']
) // SyntaxErrorso, instead of data-gjs-prop="['key1', 'key2']" you should use data-gjs-prop='["key1", "key2"]'