Skip to content

How to add a custom dropdown multi-select input from Observable notebooks to Observable framework #1716

Answered by mbostock
oscaro00 asked this question in Q&A
Discussion options

You must be logged in to vote

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 the style attribute.

html`<div class='button-inner' style='display:flex;justify-content:space-between;height:100%; id='dropdown-${inputId}'><div class='filter-selected' style='text-align:left;'>${placeholderText}</div><span style='font-size:10px;padding-left:5px;display:flex;align-items:center;'><i class="fas fa-chevron-down"></i></span></div>`

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@oscaro00
Comment options

@mbostock
Comment options

@oscaro00
Comment options

@mbostock
Comment options

Answer selected by oscaro00
Comment options

You must be logged in to vote
1 reply
@mbostock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants