-
Hello, I like the custom dropdown multi-select input from Tanya's Observable notebook. I am struggling to add the same functionality in Observable framework. I define the function dropdownInput in its own js block. I can't figure out how to get code similar to this to run successfully in Observable framework:
Any help would be appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Observable Framework uses vanilla JavaScript, so you need to use the |
Beta Was this translation helpful? Give feedback.
-
It works now. I did try the debugger in firefox. I guess I assumed the problem had to be related to converting from the Observable notebook syntax to vanilla javascript syntax like above since the dropdown menu worked fine in the notebook. Thanks again for the help. I found another slight css syntax error when copying the code from the notebook as well. |
Beta Was this translation helpful? Give feedback.
Did you try the debugger as I suggested? It’ll point out where the error is occurring.
In this case you have an invalid
html
tagged template literal because you’re missing a closing single quote ('
) on thestyle
attribute.