Open blablabla1234678 opened 2 months ago
I am familiar somewhat with Angular, so I'll support that for now. The others are not hard after one is done.
We need validation for forms. We need data - input/output mapping, for example string data - textarea input - paragraph output. In case of string the input can depend on the maximum length of the string, e.g. 100 chars are ok for a text input, but 2000 chars are ok for a textarea. Displaying it can be single line, multi line. The text can be single word or multi word too. The language can be many thing. These are just the basics. We need to be able to handle all of these rules in a general way.
Another thing here is customization. After we have a reasonable default we need to be able to customize it. This is another thing we need a general solution for. Maybe a config file or code, idk. The code is usually better for customization, but we need to solve it without generated code and without boilerplate, or we can support both config file and code. I thought of something like
x(selector).customize({
a: ...,
b: ...,
c: ....
});
But this is just a rough idea, I don't know yet what I'll need to customize it. Another approach is having a config JSON file and binding, something like:
const config = {
...
};
bind(config.x).to(class y)
The actual solution might depend on the framework I choose, but I am confident there will be reusable code between different frameworks.
We need to choose frameworks first: React, Vue, Angular or all 3?