@edunext/frontend-slot-footer

1.0.2-alpha.1 • Public • Published

frontend-slot-footer

This package provides a wrapped version of the footer using Frontend Plugin Framework.

Slot ID: footer_slot

Description

This slot is used to replace/modify/hide the footer.

Example

The following env.config.jsx will replace the default footer.

Screenshot of Default Footer

with a simple custom footer

Screenshot of Custom Footer

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

const config = {
  pluginSlots: {
    footer_slot: {
      plugins: [
        {
          // Hide the default footer
          op: PLUGIN_OPERATIONS.Hide,
          widgetId: 'default_contents',
        },
        {
          // Insert a custom footer
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'custom_footer',
            type: DIRECT_PLUGIN,
            RenderWidget: () => (
              <h1 style={{textAlign: 'center'}}>🦶</h1>
            ),
          },
        },
      ]
    }
  },
}

export default config;

Readme

Keywords

none

Package Sidebar

Install

npm i @edunext/frontend-slot-footer

Weekly Downloads

1

Version

1.0.2-alpha.1

License

AGPL-3.0

Unpacked Size

99.3 kB

Total Files

32

Last publish

Collaborators

  • jhonvedunext
  • felipemontoya