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.

Custom positioning ui fields

See original GitHub issue

Is there a possibility to arrange position of the ui fields in schema?

Prerequisites

Description

[Description of the bug or feature]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on…]

Expected behavior

[What you expected to happen]

Actual behavior

[What actually happened]

Version

You can usually get this information in your package.json or in the file URL if you’re using the unpkg one.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
Maikel-Naitcommented, Jan 6, 2021

Probably you could try to use this nice “plugin” :
https://github.com/audibene-labs/react-jsonschema-form-layout

2reactions
boerngen-schmidtcommented, Mar 12, 2021

Hello,

I was wondering too, if it is possible to rearrange the positions of fields. I have looked at some tickets #1318, #1551, #762 and #1010. Also I read the documentation a couple of times, but in neither of them I found an easily understandable way a non-javascript developer (like I am) could achieve this. I understand from the read discussions, that there is no standard for the uiSchema.

What really bugs me with rjsf is, that the schema which I would understand more as a data layout, actually defines the layout or at least I did not find another way to group fields without grouping the underling data, which also is annoying since the data might be flat, but in order to prefill the form I need to transform it and also after change transform it again to match my endpoint.

Before I had a look at JSONForms which seems to be very similar to this library. They provide a very simple way to do Layouts in their library see: https://jsonforms.io/docs/uischema/layouts

@Maikel-Nait the “plugin” seems to be very dated ~3 years old. Also it seems to only (?) support bootstrap, correct?

If there is a way, that I could design my own layout, and then pass it to the library it would be awesome to have a few examples and more documentation on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text fields & Forms design — UI components series
Usually, you will have three main options for label positioning: top, left, and right-aligned. The best style for you will depend on key...
Read more >
Positioning form fields with custom CSS
1: I am having trouble getting the form fields to go on the same line - PHONE and EMAIL ( in this order/side...
Read more >
Positioning elements
Use both Relative and Absolute ... The example above highlights the use of Absolute position. Set all Position > Left, Top, Right, Bottom...
Read more >
UI Positioning
width and height : The size of the entity. To set these fields in pixels, write the value as a number. To set...
Read more >
Positioning - Learn web development | MDN
Positioning is your tool. Or what if you want to create a UI element that floats over the top of other parts of...
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