- Output widgets with options (
tabulator
,accordion
andmask
) can be set withkey
orindex
and have as value theindex
of the elemenet(s) that are displayed - Option widgets now try to preserve value as much as possible when reset.
- Fixed
checkboxes
- Fixed
filepicker
initialization
- Deprecated
showvalue
in favor ofreadout
to see the output of a slider. - Removed obsolete
Vue
methods (props2kwargs
andkwargs2vueprops
)
- Added
notifications
widget to display a set of notifications that can be closed. - Added
highlight
widget to display Julia syntax highlighted code - Added
alert
andconfirm
widget to display javascript alerts and confirmation dialogues. label
now appears above adropdown
and not below it- Implemented
placeholder
fordropdown
: a "zeroth" disabled option that appears when value does not match anything - Added experimental
rangeslider
, a slider with multiple handles, andrangepicker
- Added experimental
accordion
andtooltip!
, to wrap the accordion and tooltip Bulma extension
- Deprecated
tabulator(keys, vals)
in favor oftabulator(OrderedDict(zip(keys, vals)))
- In
togglebuttons(options, value = x)
x
should now be one of the values ofoptions
, rather than one index from1
tolength(options)
, consistently with all other option widgets style
can no longer be passed as a string but should be passed as a dictionary, i.e.style=Dict("text-align" => "center", "width" => "100px")
class
can no longer be used, instead one should use the DOM propertyclassName
, i.e.textbox(className="is-danger")
- The
outer
keyword no longer exists, to modify aWebIO.Scope
s
simply change its DOM, i.e.s.dom = ...
- Observables of widgets can be used in conjunction with
observe
, meaning, ifwdg = Observable(dropdown(["a", "b", "c"]))
, thenobserve(wdg)
is an observable that holds the selected value of the dropdown. This is useful when creating a widget from some observable usingmap
, for exampleoptions = Observable(["a", "b", "c"]); wdg = map(dropdown, options)
- Option widgets now store their options as observable, it can be accessed with
observe(wdg, "options")
and modified withobserve(wdg, "options")[] = ["d", "e", "f"]
- Option widgets now accept
OrderedDict
with strings as keys and any Julia value as values - For any widget, changing the Julia observable also updates the visual widget (the javascript value), even for cases where the Julia type has no javascript equivalent