question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Group are not flexible enough

See original GitHub issue

Hello @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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
jamestowerscommented, Aug 28, 2017

This would be a nice feature, you could potentially set the group tag and className so you’re confined to fieldset, eg:

type: "group",
legend: "User details",
tag: "div",
className: "col-6 md-col-12",
fields: [{...}]
1reaction
cincarnatocommented, Nov 1, 2017

I really need this group { className: “col-6 md-col-12”, fields: […

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found