API
Demo
@alinea/input.number
export function
createNumber
(
label
:
Label
,
options
:
NumberOptions
)
:
NumberField
export function
number
(
label
:
Label
,
options
:
NumberOptions
)
:
NumberField
export interface
NumberField
extends
Scalar
<
number
>
{
label
:
Label
options
:
NumberOptions
shape
:
Shape
<
number
,
{
}
>
view
:
FieldRenderer
<
number
,
{
}
,
Field
<
number
,
{
}
,
number
>
>
query
<
P
>
(
field
:
Expr
<
V
>
,
pages
:
Pages
<
P
>
)
:
undefined
|
Expr
<
Q
>
}
export type
NumberOptions
=
{
help
:
Label
initialValue
:
number
inline
:
boolean
}