Skip to content

Commit 5931e2f

Browse files
author
Pietro Vertechi
authored
Merge pull request #149 from milesfrain/widget_doc_update
spinbox and textbox clarifications
2 parents 31c314c + e08e045 commit 5931e2f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/input.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ end
192192
`spinbox([range,] label=""; value=nothing)`
193193
194194
Create a widget to select numbers with placeholder `label`. An optional `range` first argument
195-
specifies maximum and minimum value accepted as well as the step.
195+
specifies maximum and minimum value accepted as well as the step. Use `step="any"` to allow all
196+
decimal numbers.
196197
"""
197198
function spinbox(::WidgetTheme, label=""; value=nothing, placeholder=label, isinteger=nothing, kwargs...)
198199
isinteger === nothing || @warn "`isinteger` is deprecated"
@@ -345,7 +346,7 @@ function toggle end
345346
346347
Create a text input area with an optional placeholder `hint`
347348
e.g. `textbox("enter number:")`. Use `typ=...` to specify the type of text. For example
348-
`typ="email"` or `typ=password`. Use `multiline=true` to display a `textarea` spanning
349+
`typ="email"` or `typ="password"`. Use `multiline=true` to display a `textarea` spanning
349350
several lines.
350351
"""
351352
function textbox(::WidgetTheme, hint=""; multiline=false, placeholder=hint, value="", typ="text", kwargs...)

src/output.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ end
173173
174174
Display elements of `v` inside notification boxes that can be closed with a close button.
175175
The elements are laid out according to `layout`.
176-
`observe` on this widget returns the observable of the list of elements that have not bein deleted.
176+
`observe` on this widget returns the observable of the list of elements that have not been deleted.
177177
"""
178178
function notifications(::WidgetTheme, v=[]; container = node(:div),
179179
wrap = identity,

0 commit comments

Comments
 (0)