StippleUI.DatePickers.DateRange — TypeDateRangeRepresents a date interval, between start and stop, with a 1 day step.
StippleUI.DatePickers.datepicker — Functiondatepicker()Renders a date picker (calendar) input element. If the fieldname references a Vector{Date}, the multiple keyword parameter must be passed as true. If the fieldname references a DateRange, the range keyword parameter must be passed as true. If the fieldname references a Vector{DateRange}, both the multiple and the range keyword parameters must be passed as true.
Missing docstring for DatePicker. Check Documenter's build log for details.
Base.parse — Functionparse(type, str; base)Parse a string as a number. For Integer types, a base can be specified (the default is 10). For floating-point types, the string is parsed as a decimal floating-point number. Complex types are parsed from decimal strings of the form "R±Iim" as a Complex(R,I) of the requested type; "i" or "j" can also be used instead of "im", and "R" or "Iim" are also permitted. If the string does not contain a valid number, an error is raised.
parse(Bool, str) requires at least Julia 1.1.
Examples
julia> parse(Int, "1234")
1234
julia> parse(Int, "1234", base = 5)
194
julia> parse(Int, "afc", base = 16)
2812
julia> parse(Float64, "1.2e-3")
0.0012
julia> parse(Complex{Float64}, "3.2e-1 + 4.5im")
0.32 + 4.5imparse(::Type{Platform}, triplet::AbstractString)Parses a string platform triplet back into a Platform object.
parse(Colorant, desc)Parse a color description.
This parses a subset of HTML/CSS color specifications. In particular, everything is supported but: currentColor.
It does support named colors (though it uses X11 named colors, which are slightly different than W3C named colors in some cases), rgb(), hsl(), #RGB, and #RRGGBB syntax.
Arguments
Colorant: literal Colorantdesc: color name or description
A literal Colorant will parse according to the desc string (usually returning an RGB); any more specific choice will return a color of the specified type.
Returns
an
RGB{N0f8}color, oran
HSLcolor ifhsl(h, s, l)was usedan
RGBAcolor ifrgba(r, g, b, a)was usedan
HSLAcolor ifhsla(h, s, l, a)was usedan
ARGB{N0f8}color if0xAARRGGBB/0xARGBwas useda specific
Coloranttype as specified in the first argument
The X11 color names with spaces (e.g. "sea green") are not recommended because they are not allowed in the SVG/CSS.
You can parse not only the CSS-style hex notations #RRGGBB/#RGB, but also 0xRRGGBB/0xRGB.
You can also parse the 8-digit or 4-digit hex notation into an RGB color with alpha. However, the result depends on the prefix (i.e. # or 0x).
julia> parse(Colorant, "#FF8800AA") # transparent orange
RGBA{N0f8}(1.0,0.533,0.0,0.667)
julia> parse(Colorant, "0xFF8800AA") # opaque purple
ARGB{N0f8}(0.533,0.0,0.667,1.0)Stipple.render — Function`function render`Abstract function. Needs to be specialized by plugins. It is automatically invoked by Stipple to serialize a Julia data type (corresponding to the fields in the ReactiveModel instance) to JavaScript/JSON. In general the specialized methods should return a Julia Dict which are automatically JSON encoded by Stipple. If custom JSON serialization is required for certain types in the resulting Dict, specialize JSON.lower for that specific type.
Example
function Stipple.render(ps::PlotSeries, fieldname::Union{Symbol,Nothing} = nothing)
Dict(:name => ps.name, ps.plotdata.key => ps.plotdata.data)
endSpecialized JSON rendering for Undefined
JSON.lower(x::Undefined) = "__undefined__"Base.convert — Functionconvert(T, x)Convert x to a value of type T.
If T is an Integer type, an InexactError will be raised if x is not representable by T, for example if x is not integer-valued, or is outside the range supported by T.
Examples
julia> convert(Int, 3.0)
3
julia> convert(Int, 3.5)
ERROR: InexactError: Int64(3.5)
Stacktrace:
[...]If T is a AbstractFloat or Rational type, then it will return the closest value to x representable by T.
julia> x = 1/3
0.3333333333333333
julia> convert(Float32, x)
0.33333334f0
julia> convert(Rational{Int32}, x)
1//3
julia> convert(Rational{Int64}, x)
6004799503160661//18014398509481984If T is a collection type and x a collection, the result of convert(T, x) may alias all or part of x.
julia> x = Int[1, 2, 3];
julia> y = convert(Vector{Int}, x);
julia> y === x
trueSee also: round, trunc, oftype, reinterpret.