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.

Add label to fields group

See original GitHub issue

Hi and thank you for this great library.

I was wondering if it’s possible to add labels for fields group ? Or do I have to inject them manually with a plugin ?

[
  {
    model: 'user',
    component: markRaw(SchemaForm),
    label: 'Label for fields group here',
    schema: [ ...fields ],
  },
  { ... }
]

Thanks in advance !

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pau-santesmassescommented, Sep 20, 2021

+1 for fieldsets or some other type of grouping (perhaps <section>?)

@ClemCornet in case it helps, my current solution is to add a class and display the label via a pseudo element. Not ideal, but it works for now.

Something like:

.section::before {
  content: attr(label);
}
1reaction
ClemCornetcommented, Sep 13, 2021

Hello @marina-mosti , thank you for your responsiveness and for this future improvement. Meanwhile, I’ll try to modify my schema 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field Group Label | Drupal.org
Field Group Label allows you to customize field group label ... add new field type "Field Group Label" (one per label to replace)...
Read more >
group_label (for fields) – Looker Help Center
You must have at least one field with the group label to create a group in the field picker. In addition, you can't...
Read more >
Groups of Fields • Forms • WAI Web Accessibility Tutorials - W3C
Using multiple lables introduces some flexibility to the layout of field groups and are appropriate for small amounts of clearly related fields. Example....
Read more >
Display a group of fields with labels - ACF Support
Also I would love to be able to style the label and the value separately, which means adding classes, unfortunately this is also...
Read more >
group_label (for fields) | Looker - Google Cloud
You can also use the group_item_label parameter to specify how fields display in the field picker under a group label. See the group_item_label ......
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