This library is the result of me wanting to better learn TypeScript, and to build something with some of the features of jQuery that I used to use, but without the dependency, and enable basic databinding.
I'm 100% Sure there are plenty of other libraries out there that do what this does (and more), but better. This was me seeing what I could build to make working without external dependencies a bit easier.
What It Is
Wrapper is a class that wraps an HTML Element, allowing you to do things to that element using a (slightly) more concise syntax than plain vanilla JS would get you. Wrappers can function as both Observable and Obervers. The library also contains Observable and Observer base classes for use outside of the Wrapper context.
What You Can Do With It
I've wrapped in (pun so intended it hurts) a number of use cases into this library.
- Chain build HTML Elements
- Create Obserables & Observers
- Link Observables & Observers to HTML Elements
- Create Inputs from Objects
- Create entire forms from Objects (including objects with nested objects)