How to use the jsonforms-core.getLabelObject function in jsonforms-core

To help you get started, we’ve selected a few jsonforms-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipsesource / jsonforms / packages / default / src / additional / array-renderer.tsx View on Github external
({  schema, uischema, data, path, dispatch }: ControlProps) => {

    const controlElement = uischema as ControlElement;
    const label = getLabelObject(controlElement);
    const resolvedSchema = resolveSchema(schema, controlElement.scope.$ref + '/items');
    const className = `control ${(convertToClassName(controlElement.scope.$ref))}`;

    return (
      <div>
        <fieldset>
          <legend>
            <button> addNewItem(dispatch, path)}
            &gt;
              +
            </button>
            <label>
              { label.show ? label.text : '' }</label></legend></fieldset></div>