Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply pagination also to nested objects #42

Closed
desdoades opened this issue Jan 29, 2018 · 0 comments
Closed

Apply pagination also to nested objects #42

desdoades opened this issue Jan 29, 2018 · 0 comments

Comments

@desdoades
Copy link

A JSON schema it-self can contain objects in a nested way like this:

  "type": "object",
  "properties": {
    "field_one": {
      "type": "string",
      "title": "field 1"
    },
    "field_two": {
      "type": "string",
      "title": "field 2"
    },
    "field_three": {
      "type": "string",
      "title": "field 3"
    },
    "data": {
      "type": "object",
      "properties": {
        "field_sub_one": {
          "type": "string",
          "title": "field sub 1"
        },
        "field_sub_two": {
          "type": "string",
          "title": "field sub 2"
        },
        "field_sub_three": {
          "type": "string",
          "title": "field sub 3"
        }
      }
    }
  }
}

If I now want to use a UI schema like this:

  "field_one": {
    "nav": "main"
  },
  "field_two": {
    "nav": "main"
  },
  "field_three": {
    "nav": "next_tab"
  },
  "data": {
    "field_sub_one": {
      "nav": "sub_main"
    },
    "field_sub_two": {
      "nav": "sub_main"
    },
    "field_sub_three": {
      "nav": "sub_next_tab"
    }
  }
}

I have a problem. I would expect 4 tabs:

Tab main with: field_one, field_two
Tab next_tab with: field_three
Tab sub_main with: field_sub_one, field_sub_two
Tab sub_next_tab with: field_sub_three

Is there a way achieve this? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant