You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Slot ID Aliases: `course_authoring_unit_sidebar_slot`
6
+
7
+
### Plugin Props:
8
+
9
+
*`courseId` - String.
10
+
*`blockId` - String. The usage id of the current unit being viewed / edited.
11
+
*`unitTitle` - String. The name of the current unit being viewed / edited.
12
+
*`xBlocks` - Array of Objects. List of XBlocks in the Unit. Object structure defined in `index.tsx`.
13
+
*`readOnly` - Boolean. True if the user should not be able to edit the contents of the unit.
14
+
15
+
### Description
16
+
17
+
The slot wraps the sidebar that is displayed on the unit editor page. It can
18
+
be used to add additional sidebar components or modify the existing sidebar.
19
+
20
+
> [!IMPORTANT]
21
+
> This document describes an older version `v1` of the `CourseAuthoringUnitSidebarSlot`.
22
+
> It is recommended to use the `org.openedx.frontend.authoring.course_unit_sidebar.v2` slot ID for new plugins.
23
+
24
+
The `v1` slot has the following limitations compared to the `v2` version:
25
+
* It renders conditionally based on the `isUnitVerticalType` prop, which means the plugins won't be rendered in other scenarios like unit with library blocks.
26
+
* It does **not** wrap the `SplitTestSidebarInfo` component. So it can't be hidden from the sidebar by overriding the components in the slot.
27
+
* As it is not the primary child component of the sidebar, CSS styling for inserted components face limitations, such as an inability to be `sticky` or achieve 100% height.
28
+
29
+
## Example 1
30
+
31
+

32
+
33
+
The following example configuration surrounds the sidebar in a border as shown above.
0 commit comments