-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add name to a Bond #325
Labels
Comments
Yeah that's cool |
fonsp
added
enhancement
New feature or request
frontend
Concerning the HTML editor
labels
Sep 2, 2020
What do you mean? |
|
Aha, for that you can use: md"A descriptive label for `var` $(@bind var Slider(LinRange(0, 20, 1001), default=10))" |
I understand not wanting to add too much clutter to the |
Ah now I get it |
You can use this: # ╔═╡ 3027890b-196b-4a65-9f17-0180d21f6beb
using HypertextLiteral
# ╔═╡ 19da2136-a5e4-476e-95a9-853960e3a50f
macro label_bind(name::Symbol, ex::Expr)
quote
@htl("""
<div style='display: flex;'>
<code style='font-weight: bold'>$($(String(name)))</code>: $(@bind $(name) $(esc(ex)))
</div>
""")
end
end |
Now that there is JuliaPluto/PlutoUI.jl#305, i am closing this. Feel free to reopen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now we have the possibility of having the value next to a slider -- great!
It would be useful to have the name of the variable too.
The text was updated successfully, but these errors were encountered: