Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Dashboard Modal Slot

Slot ID: org.openedx.frontend.learner_dashboard.dashboard_modal.v1

Description

This slot is used for the modal on a dashboard. The following env.config.jsx will render the modal.

Example

Learner dashboard will show modal Screenshot of the dashboard modal

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

const config = {
  pluginSlots: {
    org.openedx.frontend.learner_dashboard.dashboard_modal.v1: {
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'dashboard_modal',
            type: DIRECT_PLUGIN,
            priority: 60,
            RenderWidget: 
              <ModalDialog title="Modal that appears on learner dashboard" />,
          },
        },
      ],
    }
  },
}

export default config;