How to use the jsonforms-core.JsonForms.stylingRegistry 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
export const getStyle = (styleName: string) =>
  JsonForms.stylingRegistry.getAsClassName(styleName);
github eclipsesource / jsonforms / packages / default / src / additional / tree-renderer.tsx View on Github external
.map(prop =>
                      <button> {
                          const newData = _.keys(prop.schema.properties).reduce(
                            (d, key) =&gt; {
                              if (prop.schema.properties[key].default) {
                                d[key] = prop.schema.properties[key].default;
                              }

                              return d;
                            },
                            {}
                          );
                          dispatch(
                            update(
                              compose(this.state.dialog.path, prop.property),
                              array =&gt; {</button>
github eclipsesource / jsonforms / packages / default / src / additional / categorization-renderer.tsx View on Github external
render() {
    const { uischema, visible } = this.props;
    const categorization = uischema as Categorization;
    const classNames = JsonForms.stylingRegistry.getAsClassName('categorization');
    const masterClassNames = JsonForms.stylingRegistry.getAsClassName('categorization.master');
    const detailClassNames = JsonForms.stylingRegistry.getAsClassName('categorization.detail');
    const selectedCategory = this.findCategory(categorization);

    return (
      <div hidden="{visible">
        <div>
          
              this.setState({ selectedCategory: category })
            }
          /&gt;
        </div></div>
github eclipsesource / jsonforms / packages / default / src / additional / categorization-renderer.tsx View on Github external
export const CategorizationList  = ({ categorization, selectedCategory, depth, onSelect }: CategorizationProps) =&gt;
  (
    <ul>
      {
        categorization.elements.map(category =&gt; {
          if (isCategorization(category)) {
            return (
              <li>
                <span>{category.label}</span>
                
              </li>
            );</ul>