How to use the @webiny/app/plugins.renderPlugins function in @webiny/app

To help you get started, we’ve selected a few @webiny/app 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 webiny / webiny-js / packages / app-forms / src / admin / plugins / formDetails / formSubmissions / index.js View on Github external
render({ form, loading, refreshPages }) {
            return (
                
                    
                        <div style="{{">
                            {loading &amp;&amp; }
                            {form &amp;&amp;
                                renderPlugins("forms-form-details-submissions", {
                                    form,
                                    refreshPages
                                })}
                        </div>
                    
                
            );
        }
    },
github webiny / webiny-js / packages / app-page-builder / src / editor / plugins / elementSettings / advanced / AdvancedSettings.js View on Github external
{({ submit, Bind, data, form }) =&gt; (
                        
                            
                                
                                    {renderPlugins(
                                        "pb-page-element-advanced-settings",
                                        { Bind, data, form },
                                        { wrapper: false, filter: pl =&gt; pl.elementType === type }
                                    )}
                                
                            
                            
                                Cancel
                                Save
                            
                        
                    )}
github webiny / webiny-js / packages / app-page-builder / src / admin / views / Pages / PageDetails.js View on Github external
{pageDetails =&gt; (
                                            
                                                {renderPlugins("pb-page-details", {
                                                    refreshPages,
                                                    pageDetails,
                                                    loading
                                                })}
                                            
                                        )}
github webiny / webiny-js / packages / app-page-builder / src / admin / plugins / pageDetails / header / Header.js View on Github external
const Header = (props: Object) =&gt; {
    const {
        pageDetails,
        pageDetails: { page },
        refreshPages
    } = props;
    return (
        
            
                
                    {page.title}
                
                
                    {renderPlugins("pb-page-details-header-left", { pageDetails, refreshPages })}
                    {renderPlugins("pb-page-details-header-right", { pageDetails, refreshPages })}
                
            
        
    );
};
github webiny / webiny-js / packages / app-page-builder / src / admin / plugins / pageDetails / previewContent / index.js View on Github external
render({ pageDetails, loading, refreshPages }: WithPageDetailsProps) {
            return (
                
                    
                        
                            <div style="{{">
                                {loading &amp;&amp; }
                                {renderPlugins("pb-page-details-revision-content-preview", {
                                    pageDetails,
                                    refreshPages
                                })}
                            </div>
                        
                    
                
            );
        }
    },
github webiny / webiny-js / packages / app-admin / src / components / AdminLayout.js View on Github external
export const AdminLayout = ({ children }: { children: React.Node }) =&gt; {
    return {renderPlugins("layout", { content: children })};
};
github webiny / webiny-js / packages / app-page-builder / src / admin / plugins / pageDetails / header / Header.js View on Github external
const Header = (props: Object) =&gt; {
    const {
        pageDetails,
        pageDetails: { page },
        refreshPages
    } = props;
    return (
        
            
                
                    {page.title}
                
                
                    {renderPlugins("pb-page-details-header-left", { pageDetails, refreshPages })}
                    {renderPlugins("pb-page-details-header-right", { pageDetails, refreshPages })}
                
            
        
    );
};
github webiny / webiny-js / packages / app-page-builder / src / editor / components / Element.js View on Github external
renderDraggable: ({ element, plugin, onClick }) =&gt; ({ connectDragSource }) =&gt; {
            return connectDragSource(
                <div>
                    <div>
                    <div>
                        {renderPlugins("pb-page-element-action", { element, plugin })}
                        <span>{plugin.name.replace("pb-page-element-", "")}</span>
                    </div>
                </div>
            );
        }
    })</div>
github webiny / webiny-js / packages / app-forms / src / admin / views / Forms / FormDetails.js View on Github external
{({ data, loading }) =&gt; {
                const form = get(data, "forms.form.data") || null;
                return (
                    
                        {form &amp;&amp; (
                            
                                {renderPlugins(
                                    "forms-form-details-revision-content",
                                    { refreshForms, form, loading },
                                    { wrapper: false }
                                )}
                            
                        )}
                    
                );
            }}
github webiny / webiny-js / packages / app-page-builder / src / editor / components / Editor / DefaultEditorBar.js View on Github external
const DefaultEditorBar = React.memo(() =&gt; {
    return (
        
            
                {renderPlugins("pb-editor-default-bar-left")}
            
            {/*
            
                {renderPlugins("pb-editor-default-bar-center")}
            
            */}
            
                {renderPlugins("pb-editor-default-bar-right")}
            
        
    );
});