Skip to content

Query regarding usage #992

Closed
Closed

Description

@thecodejack

Hi

First of all, thanks for this. I am exploring config driven forms and ended up here. Have explored multiple modules and DDF one seems to be complete package. I have a query. I am sorry if this is wrong place to ask same.

Is there any config management to place 2 or more fields in same row? Infact manage complete layout would be awesome using Box(of material ui) or anything that supported by component library

Activity

  1. rvsia commented on Mar 17, 2021

    @rvsia
    Contributor

    Hello, thank you for your kind words!

    If you are using Material UI mapper, you can actually simply place 2 or more fields in the same row.

    Each MUI component is wrapped in Grid component and you pass props simply by setting: FormFieldGridProps: { xs: 6 } etc. You can check a previous issue with example: #871

    Box component should be simple to implement if you need it:

    const FormBox = ({ fields, ...props }) => {
       const { renderForm } = useFormApi();
    
      return <Box>{renderForm(fields)}</Box>
    }

    You can check documentation for more details.

    (Also moving this to discussions)

  2. locked and limited conversation to collaborators on Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions