API
Demo
@alinea/input.path
export function
createPath
(
label
:
Label
,
options
:
PathOptions
)
:
PathField
export function
path
(
label
:
Label
,
options
:
PathOptions
)
:
PathField
export interface
PathField
extends
Scalar
<
string
>
{
label
:
Label
options
:
PathOptions
shape
:
Shape
<
string
,
{
}
>
view
:
FieldRenderer
<
string
,
{
}
,
Field
<
string
,
{
}
,
string
>
>
query
<
P
>
(
field
:
Expr
<
V
>
,
pages
:
Pages
<
P
>
)
:
undefined
|
Expr
<
Q
>
}
export type
PathOptions
=
{
from
:
string
help
:
Label
inline
:
boolean
optional
:
boolean
width
:
number
}