@jaypha/webcomponents
v2.0.1
Published
A bunch of vanilla web coponents
Downloads
10
Readme
Webcomponents
A set of vanilla web components that I have developed for various projects.
No framework required.
Available in ES6, UMD and CJS.
Important! As of version 2, lists no longer uses Bindable.
Installation
npm install --save @jaypha/webcomponents
Use --save-dev
if you intend to incorporate this module into our own bundles.
Dependencies
- tinytime (for jaypha-datecolumn)
- dayjs (for jaypha-datecolumn)
- Web components polyfill
The Components
japha-list
A list component that constructs a list from a set of data. The list can be
- sortable
- column definitions including formating.
- columns can have their order rearranged.
jaypha-editable
Creates an editable area.
jaypha-enum
Enumerable display that allows you to set it's value, and it displays a label based on that value.
jaypha-spinput (in development)
A replacement for the built in <input type='number'>
that overcomes some of its
shortcommings.
TODO
- Documentation
- Spinput.
- Transpile UMD to make available for older browsers.
Release Notes
2.0.1 Added Day.js as a dependency, to ensure that jayph-datecolumn will parse
dates correctly.
2.0.0 Stopped using Bindable. Row objects are now just ordinary object, so you can no
longer use getItem, setItem or removeItem.
You can still use bindable values by including them in a column definition.
License
Copyright (C) 2019 Jaypha.
Distributed under the Boost Software License, Version 1.0.