@fieldia/widgets
v0.20.0
Published
Fieldia field inputs in plain DOM, with the underline and outlined skins.
Readme
@fieldia/widgets
The field inputs of Fieldia, in plain DOM: text, numbers,
choices, ratings and scales, dates, many2one search pickers, tags, tables of
lines, file and image uploads (as a list, thumbnails, or cards with each name
under its picture), formatted text and JSON. Three skins, chosen per
form with data-fd-skin:
underline— labels beside values, quiet underlined inputs (a business sheet)outlined— labels above boxed inputs (Ant Design style)quiet— the outlined page, each value plain words until pointed at or entered (Azure DevOps style); a field the viewer marksdata-quietwears it in any skin, andwearsQuiet(field, node)says which widgets do
npm install @fieldia/widgetsMost apps never import this package directly: @fieldia/viewer
lays a page out with these widgets. Import it to write your own widget — a
WidgetFactory returns { element, update(state), focus() } — and register it
with the viewer's widgets option under type or type.widget.
MIT licensed.
