Skip to content

Table-based array renderer should use start case instead of capitalize #1270

@Nasir2712

Description

@Nasir2712

Not sure if this is a bug or something that I am doing wrong. I am trying to fix the labels for the ui elements here is my schema.

  type: 'object',
  properties: {
    "primaryPrograms": {
      "type": "array",
      "items": {
        type: 'object',
        properties: {
          "primaryProgram": {
            "type": "boolean"
          },
          "program": {
            "type": "string",
            "enum": []
          },
          "admitDate": {
            'type': 'string',
            'format': 'date'
          },
          "dischargeDate": {
            'type': 'string',
            'format': 'date'
          }
        }
      }
    }
  }
}

This is what i get
screen shot 2019-02-20 at 10 20 10 pm

ui schema - {
  "type": "VerticalLayout",
  "elements": [
    {
      "type": "Control",
      "label": "Primary Program"
      "scope": "#/properties/primaryPrograms/items/properties/primaryProgram"
    }
  ]
}

If I try to define a uischema as suggested in the docs, i lose the array renderer but the label works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions