From 2e4ec40f649b53bcec6aa79bae000a13fa503780 Mon Sep 17 00:00:00 2001 From: John Merkel Date: Wed, 21 Feb 2024 13:05:44 -0800 Subject: [PATCH] Add `label` kwarg to `confirm` Supersedes https://github.com/JuliaPluto/PlutoUI.jl/pull/243 --- src/Confirm.jl | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Confirm.jl b/src/Confirm.jl index 6608367a..7853c632 100644 --- a/src/Confirm.jl +++ b/src/Confirm.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.12 +# v0.19.38 using Markdown using InteractiveUtils @@ -114,6 +114,7 @@ begin Base.@kwdef struct ConfirmBond element::Any secret_key::String=String(rand('a':'z', 10)) + label::Union{String, Nothing}=nothing end function Base.show(io::IO, m::MIME"text/html", cb::ConfirmBond) @@ -121,9 +122,10 @@ begin return Base.show(io, m, HTML("❌ You need to update Pluto to use this PlutoUI element.")) end output = @htl( - """$( - cb.element - )