How to use the @jsonforms/react.withJsonFormsEnumCellProps function in @jsonforms/react

To help you get started, we’ve selected a few @jsonforms/react 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 / vanilla / src / cells / EnumCell.tsx View on Github external
<option label="{optionValue}" value="{optionValue}">
                  {optionValue}
                </option>
              )
            )
          )}
    
  );
};
/**
 * Default tester for enum controls.
 * @type {RankedTester}
 */
export const enumCellTester: RankedTester = rankWith(2, isEnumControl);

export default withVanillaControlProps(withJsonFormsEnumCellProps(EnumCell));
github eclipsesource / jsonforms / packages / material / src / cells / MaterialEnumCell.tsx View on Github external
WithClassname
} from '@jsonforms/core';
import { withJsonFormsEnumCellProps } from '@jsonforms/react';
import { MuiSelect } from '../mui-controls/MuiSelect';

export const MaterialEnumCell = (props: EnumCellProps &amp; WithClassname) =&gt; (
  
);

/**
 * Default tester for enum controls.
 * @type {RankedTester}
 */
export const materialEnumCellTester: RankedTester = rankWith(2, isEnumControl);

export default withJsonFormsEnumCellProps(MaterialEnumCell);