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

Dynamic title for Collapsible #102

Open
LukasB79 opened this issue Oct 18, 2018 · 4 comments
Open

Dynamic title for Collapsible #102

LukasB79 opened this issue Oct 18, 2018 · 4 comments

Comments

@LukasB79
Copy link

LukasB79 commented Oct 18, 2018

Do you plan support for dynamic titles for collapsible fields of array types ?
For example title could be one of the property of array item:

items.title = items.properties.title.value

For now it only shows same title for all items "itemsTitle" and so it is not so readable in collapsed state

const schema = {
  type: "object",
  properties: {
    arrayField:{
      type: "array",
      items: {
        type: "object",
        title: "itemsTitle",
        properties: {
          title: { type: "string" },
          number: { type: "number" }
        }
      }
    }
  }
}

const uiSchema = {
  arrayField: {
    items: {
      "ui:field": "collapsible",
      collapse: {
        field: "ObjectField"
      }
    }
  }
}

live demo

@shortwavedave
Copy link

I would also like to use this feature - is there anyway to accomplish this?

@trdunbar
Copy link

trdunbar commented Sep 12, 2019

I am also looking to dynamically label collapsible field titles. Any suggestings would be greatly appreciated.

@vxb1766
Copy link

vxb1766 commented Feb 24, 2022

Any Solution I am looking for this too?

@trdunbar
Copy link

Any Solution I am looking for this too?

No, not that I am aware of.

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

4 participants