0.0.1 • Published 12 months ago
@edunext/frontend-slot-oddisey v0.0.1
frontend-slot-oddisey
This package provides a wrapped version of the oddisey using Frontend Plugin Framework.
Slot ID: oddisey_slot
Description
This slot is used to replace/modify/hide the oddisey.
Example
The following env.config.jsx will replace the default oddisey.

with a simple custom oddisey

import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
const config = {
pluginSlots: {
oddisey_slot: {
plugins: [
{
// Hide the default oddisey
op: PLUGIN_OPERATIONS.Hide,
widgetId: 'default_contents',
},
{
// Insert a custom oddisey
op: PLUGIN_OPERATIONS.Insert,
widget: {
id: 'custom_oddisey',
type: DIRECT_PLUGIN,
RenderWidget: () => (
<h1 style={{textAlign: 'center'}}>🦶</h1>
),
},
},
]
}
},
}
export default config;0.0.1
12 months ago
1.0.0-semantically-released
12 months ago