Skip to content

Novice help 🥶 #4290

@lynn1286

Description

@lynn1286

Prerequisites

What theme are you using?

antd

What is your question?

I'm using the @rjsf/antd library and I have the following problems that I can't solve:

  1. Does the form support landscape layout? I tried configuring formContext and the effect was not very satisfactory
formContext={{
    descriptionLocation: 'tooltip',
    readonlyAsDisabled: false,
    labelCol: { span: 8 },
    wrapperCol: { span: 16 },
}}
image
  1. What should I do to change the drop-down selection interactive mode in array append mode to multi-select box interactive mode?
 "special_feature": {
      "title": "Additional Features",
      "description": "An additional text field where you can indicate any additional relevant product information.",
      "examples": ["max number of images 36,  Operating Time 6 hours"],
      "type": "array",
      "minItems": 1,
      "minUniqueItems": 1,
      "maxUniqueItems": 62,
      "selectors": ["marketplace_id", "language_tag"],
      "items": {
        "type": "object",
        "required": ["language_tag", "marketplace_id", "value"],
        "properties": {
          "value": {
            "title": "Special Features",
            "description": "Provide any special features an item has that distinguish it from other, comparable products",
            "editable": true,
            "hidden": false,
            "examples": ["Corded"],
            "type": "string",
            "minLength": 0,
            "maxLength": 500,
            "maxUtf8ByteLength": 2000,
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string",
                "enum": [
                  "Dust Resistant",
                  "Eco-Friendly",
                  "Fade Resistant",
                  "Flame Resistant",
                  "Foldable",
                  "Lightweight",
                  "Tear Resistant",
                  "UV Resistant",
                  "Washable",
                  "Water Resistant",
                  "Waterproof",
                  "Weather Resistant",
                  "Wrinkle Resistant"
                ],
                "enumNames": [
                  "Dust Resistant",
                  "Eco-Friendly",
                  "Fade Resistant",
                  "Flame Resistant",
                  "Foldable",
                  "Lightweight",
                  "Tear Resistant",
                  "UV Resistant",
                  "Washable",
                  "Water Resistant",
                  "Waterproof",
                  "Weather Resistant",
                  "Wrinkle Resistant"
                ]
              }
            ]
          },
          "language_tag": {
            "$ref": "#/$defs/language_tag"
          },
          "marketplace_id": {
            "$ref": "#/$defs/marketplace_id"
          }
        },
        "additionalProperties": false
      }
    }

The above data rendering interface is as follows 😭:
image

Actually I want this 🤣:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions