product-code-generator
v1.0.12
Published
The client side library for displaying a Product Code Generator
Downloads
14
Readme
Product Code Generator Lib (pcg.js)
The Product Code Generator Library is designed to allow developers to build infinitely nested forms with customizable inputs and strong type checking and validation.
Design Goals
The primary design goal of the Product Code Generator Library is for every major component to be fully customizable.
Core Concepts
There are three main concepts which power the Product Code Generator Library, and allow it to process infinitely complex forms.
- Conditionals - combining the results of one or more inputs to return a true or false value
- Branching - when the results of previous answer(s) lead to a different set of successive questions
- Dependencies - when a single question depends on previous answer(s)
In the field, it has been found that branching leads to highly complicated form configurations. Dependencies are a far cleaner way of managing the same functionality.