Skip to content

Commit

Permalink
Fix #81
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Mar 30, 2021
1 parent 88e7edb commit 97d5bce
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Builtins.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ See the [Mozilla docs about `select`](https://developer.mozilla.org/en-US/docs/W
`@bind veg Select(["potato" => "🥔", "carrot" => "🥕"], default="carrot")`"""
struct Select
options::Array{Pair{<:AbstractString,<:Any},1}
options::Vector{Pair{<:AbstractString,<:Any}}
default::Union{Missing, AbstractString}
end
Select(options::Array{<:AbstractString,1}; default=missing) = Select([o => o for o in options], default)
Select(options::Array{<:Pair{<:AbstractString,<:Any},1}; default=missing) = Select(options, default)
Select(options::AbstractVector{<:AbstractString}; default=missing) = Select([o => o for o in options], default)
Select(options::AbstractVector{<:Pair{<:AbstractString,<:Any}}; default=missing) = Select(options, default)

function show(io::IO, ::MIME"text/html", select::Select)
withtag(io, :select) do
Expand Down Expand Up @@ -226,11 +226,11 @@ See the [Mozilla docs about `select`](https://developer.mozilla.org/en-US/docs/W
`@bind veg MultiSelect(["potato" => "🥔", "carrot" => "🥕"], default=["carrot"])`"""
struct MultiSelect
options::Array{Pair{<:AbstractString,<:Any},1}
options::Vector{Pair{<:AbstractString,<:Any}}
default::Union{Missing, AbstractVector{AbstractString}}
end
MultiSelect(options::Array{<:AbstractString,1}; default=missing) = MultiSelect([o => o for o in options], default)
MultiSelect(options::Array{<:Pair{<:AbstractString,<:Any},1}; default=missing) = MultiSelect(options, default)
MultiSelect(options::AbstractVector{<:AbstractString}; default=missing) = MultiSelect([o => o for o in options], default)
MultiSelect(options::AbstractVector{<:Pair{<:AbstractString,<:Any}}; default=missing) = MultiSelect(options, default)

function show(io::IO, ::MIME"text/html", select::MultiSelect)
withtag(io, Symbol("select multiple")) do
Expand Down Expand Up @@ -293,11 +293,11 @@ get(select::FilePicker) = Dict("name" => "", "data" => UInt8[], "type" => "")
"""
struct Radio
options::Array{Pair{<:AbstractString,<:Any},1}
options::Vector{Pair{<:AbstractString,<:Any}}
default::Union{Missing, AbstractString}
end
Radio(options::Array{<:AbstractString,1}; default=missing) = Radio([o => o for o in options], default)
Radio(options::Array{<:Pair{<:AbstractString,<:Any},1}; default=missing) = Radio(options, default)
Radio(options::AbstractVector{<:AbstractString}; default=missing) = Radio([o => o for o in options], default)
Radio(options::AbstractVector{<:Pair{<:AbstractString,<:Any}}; default=missing) = Radio(options, default)

function show(io::IO, ::MIME"text/html", radio::Radio)
groupname = randstring('a':'z')
Expand Down

2 comments on commit 97d5bce

@fonsp
Copy link
Member Author

@fonsp fonsp commented on 97d5bce Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/33168

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.6 -m "<description of version>" 97d5bced92d6461024e3f3204f998be14477c8b0
git push origin v0.7.6

Please sign in to comment.