Skip to content

Latest commit

 

History

History

NotificationsDiscussionsSidebarSlot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Notifications Discussions Sidebar Slot

Slot ID: notifications_discussions_sidebar_slot

Description

This slot is used to replace/modify/hide the notifications discussions sidebar.

Example

Default content

Sidebar slot with default content

Replaced with custom component

📊 in sidebar slot

The following env.config.jsx will replace the notifications discussions sidebar.

import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';

const config = {
  pluginSlots: {
    notifications_discussions_sidebar_slot: {
      keepDefault: false,
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'custom_sidebar_component',
            type: DIRECT_PLUGIN,
            RenderWidget: () => (
              <h1>📊</h1>
            ),
          },
        },
      ]
    }
  },
}

export default config;