Group are not flexible enough
See original GitHub issueHello @icebob @jmverges @dflock
I’m late to the party and I didn’t really follow the work on groups.
Since working on #257 , I’m exposed to how group work and I have noticed a flaw in the current design.
I can’t alternate freely between single field and group.
The only possibility is fields -> groups
. I can’t do the inverse (ex. groups -> fields
) or anything else (ex. field -> group -> field -> group -> group -> field
)
My goal is not to spit on everyone hard work, but I wonder if they can be a better more flexible way to do this.
Why a type: group
was not used ?
fields: [{
type: "input",
inputType: "text",
label: "Single field (without group)",
model: "single"
}, {
type: "group",
legend: "Contact Details",
fields: [{
type: "input",
inputType: "text",
label: "Name",
model: "name"
}, {
type: "input",
inputType: "email",
label: "Email",
model: "email"
}]
}, {
type: "group",
legend: "Other Details",
fields: [{
type: "input",
inputType: "text",
label: "More",
model: "others.more"
}, {
type: "input",
inputType: "text",
label: "Things",
model: "others.things"
}]
}]
Thanks for the feedback.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why am I not flexible? - Sun Breath Yoga
It doesn't know how to stop working and rest or there is an imbalance that causes it to work overtime.
Read more >Some Individuals More Flexible Than Others?
There are a number of different factors that may contribute to why some people are more flexible than others. Genetics, gender, exercise ...
Read more >How Flexible Are You?
Flexibility is defined as the ability of a joint or group of joints ... If you are not flexible enough to achieve a...
Read more >Frequently Asked Questions - Luther Bryan
The target muscle group will stretch more successfully after the balancing muscle group has been stretched. If you still are not making optimal...
Read more >How to Be More Flexible: 30 Tips, Stretches, Exercises, and ...
For everyone, try incorporating these stretches today to help improve your flexibility and ward off back pain and poor posture in the future....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This would be a nice feature, you could potentially set the group tag and className so you’re confined to
fieldset
, eg:I really need this group { className: “col-6 md-col-12”, fields: […