From cf503e9f61c69dbe0f3a55bdf69121cea4457bc8 Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Tue, 27 Oct 2020 20:40:12 +0100 Subject: [PATCH] head_content fix --- src/Dashboard.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Dashboard.jl b/src/Dashboard.jl index ab27d919..478bd466 100644 --- a/src/Dashboard.jl +++ b/src/Dashboard.jl @@ -19,7 +19,7 @@ end const tagname = "st-dashboard" -function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true, title::String = "Stipple Dashboard", +function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true, title::String = "Stipple Dashboard", head_content::String = "", class::String = "", style::String = "", channel::String = Genie.config.webchannels_default_route, kwargs...) content = if isa(content, Vector) push!(pushfirst!(content, "<$tagname>"), "") @@ -28,7 +28,8 @@ function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true, end kwargs = NamedTuple(delete!(Dict(kwargs...), :id), :id, elemid) - Stipple.layout(Genie.Renderer.Html.div(content; kwargs...), partial=partial, title=title, class=class, style=style, channel=channel) + Stipple.layout(Genie.Renderer.Html.div(content; kwargs...); partial=partial, title=title, class=class, + head_content=head_content, style=style, channel=channel) end end