How to use the scrivito.registerComponent function in scrivito

To help you get started, we’ve selected a few scrivito 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 Scrivito / scrivito_example_app_js / src / Components / ScrivitoExtensions / IconEditorTab.js View on Github external
currentIcon={currentIcon}
            searchValue={this.state.searchValue}
            setWidgetIcon={this.setWidgetIcon}
          />
          
        
      
    );
  }
}

Scrivito.registerComponent("IconEditorTab", IconEditorTab);
github Scrivito / scrivito_example_app_js / src / Components / ScrivitoExtensions / ColumnsEditorTab.js View on Github external
}

    const containerWidget = this.props.widget;

    adjustNumberOfColumns(containerWidget, newGrid.length);
    distributeContents(
      containerWidget.get("columns"),
      this.state.originalContents
    );
    adjustColSize(containerWidget.get("columns"), newGrid);

    this.setState({ currentGrid: gridOfWidget(containerWidget) });
  }
}

Scrivito.registerComponent("ColumnsEditorTab", ColumnsEditorTab);

const PresetGrid = Scrivito.connect(
  ({ currentGrid, adjustGrid, title, grid }) => {
    const classNames = ["gle-preview"];
    if (isEqual(currentGrid, grid)) {
      classNames.push("active");
    }

    return (
      <div title="{title}"> adjustGrid(grid)}
      &gt;
        {grid.map((colSize, index) =&gt; (
          <div></div></div>
github Scrivito / scrivito_example_app_js / src / Components / ScrivitoExtensions / SocialCardsTab.js View on Github external
import * as React from "react";
import * as Scrivito from "scrivito";
import getMetadata from "../../utils/getMetadata";

Scrivito.registerComponent("SocialCardsTab", ({ obj }) =&gt; (
  <div>
    <div>
      <div>
        <div>
          <div>
            
          </div>
        </div>
        <div>
          <div>
            
          </div>
        </div>
      </div>
    </div>
</div>

scrivito

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

LGPL-3.0
Latest version published 11 days ago

Package Health Score

68 / 100
Full package analysis