1.0.1 • Published 6 months ago

@shefing/right-panel v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Right-panel plugin

This plugin enables opening a relationship field in a right panel, in addition to a pop-up.

This allows working on both of the entities ,original and relationship, at once.

This was done by adding a custom view to the edit view.

For example:

img1.png

Setup

Install the plugin using your node package manager, e.g:

npm add @shefing/right-panel

In the payload.config.ts add the following:

plugins: [
...plugins
RightPanelPlugin({
  excludedCollections: [] //array of collections names to exclude
});
]

Collection Configuration

To add a Right Panel to a Relationship field, include the following in the collection's admin configuration:

  admin: {
    custom: {
      rightPanel: true,
    },

  },

Fields Configuration

To enable the Right Panel in the Relationship field, add the following lines to the field configuration:

    admin: {
      components: {
        Field:
        components: {
            Field: '@shefing/right-panel/components/RelationInRightPanelField'
        }
      }
    },
1.0.1

6 months ago

1.0.0

6 months ago