npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@simomosi/dynamic-forms

v2.0.0

Published

DynamicForms is a js library that handles all interactions in forms with dynamic content (e.g. select with variable options, updating rules and visibility changes depending on fields' state).

Downloads

11

Readme

Table of Contents

Dynamic Forms

npm bundle size npm GitHub deployments GitHub User's stars

What is it and what can I do with it

DynamicForms is a client library that handles all the interaction in forms with dynamic content in an easy and fast way.

It was born to automate progressive filtering and initialisation of dynamic fields. Then it evolved to support the developer in managing and centralizing all forms interactions.

It's written in typescript and compiled in javascript. It is later transpiled with webpack and babel to create a single lightweight bundle which ensure the maximum compatibility with older browsers.

Here's some examples.

Progressive filtering

Dynamic Select example gif

Automatic fields initialisation with dynamic content

Dynamic Form initialisation gif

The progressive filtering status is restored: all the available options are automatically fetched.

Visibility changes depending on fields' state

Dynamic Checkbox example gif

Updating rules

Dynamic Radio example gif

Much much more

Got your attention? Try it!

Dynamic Forms is released as a single file. You can also find an already functioning example!

Documentation, installation and examples of use

See DynamicForms page.

Main features

  • [x] Easy to use: DynamicForms works in a declarative way; no code with the default behavior, just a simple configuration!
  • [x] Modern javascript and backward compatible: works on all browsers!
  • [x] Lightweight: having no dependencies, you can integrate it everywhere!
  • [x] Automate repetitive and boring operations: read values, fetch data making async remote calls, update fields' status, clear other fields, hide/show sections... even listing them is BORING!
  • [x] Highly customizable: are you using an external library with custom html elements? Don't worry as you can specify your own functions to read/write data

Support

If you want to support me just star the project on github and share it with your collegues. If you have questions or suggestions open an issue on github.

Thank you very much for your support ❤