File tree 2 files changed +6
-15
lines changed
2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
1
.. _XBlock Utils :
2
2
3
3
4
- ############
5
4
Xblock.utils
6
5
############
7
6
8
- ********************************************
9
7
Package having various utilities for XBlocks
10
8
********************************************
11
9
12
10
13
- =======
14
11
Purpose
15
12
=======
16
13
17
14
``xblock/utils `` package contains a collection of utility functions and base test classes that are useful for any XBlock.
18
15
19
16
20
- ==============
21
17
Documentation
22
- ==============
18
+ =============
23
19
24
20
25
21
StudioEditableXBlockMixin
26
- *************************
22
+ -------------------------
27
23
28
24
.. code :: python
29
25
@@ -119,7 +115,7 @@ Supported field options (all field types):
119
115
Basic screenshot: |Screenshot 1 |
120
116
121
117
StudioContainerXBlockMixin
122
- **************************
118
+ -------------------------
123
119
124
120
.. code :: python
125
121
@@ -138,7 +134,7 @@ An example is the mentoring XBlock: |Screenshot 2|
138
134
139
135
140
136
child\_ isinstance
141
- *****************
137
+ -------------------------
142
138
143
139
.. code :: python
144
140
@@ -164,13 +160,13 @@ orders of magnitude faster.
164
160
.. |Screenshot 2 | image :: Images/Screenshot_2.png
165
161
166
162
XBlockWithSettingsMixin
167
- ***********************
163
+ -------------------------
168
164
169
165
This mixin provides access to instance-wide XBlock-specific configuration settings.
170
166
See :ref: `accessing-xblock-specific-settings ` for details.
171
167
172
168
ThemableXBlockMixin
173
- *******************
169
+ -------------------------
174
170
175
171
This mixin provides XBlock theming capabilities built on top of XBlock-specific settings.
176
172
See :ref: `theming-support ` for details.
Original file line number Diff line number Diff line change 1
1
.. _settings-and-theme-support :
2
2
3
3
4
- ##########################
5
4
Settings and theme support
6
5
##########################
7
6
8
7
.. _accessing-xblock-specific-settings :
9
8
10
- **********************************
11
9
Accessing XBlock specific settings
12
10
**********************************
13
11
@@ -36,7 +34,6 @@ mutable settings. Both ``SettingsService`` and
36
34
bucket and return them as is. Refer to the ``SettingsService `` docstring
37
35
and implementation for more details.
38
36
39
- =============================
40
37
Using XBlockWithSettingsMixin
41
38
=============================
42
39
@@ -60,7 +57,6 @@ settings key is not found) ``default`` value is used.
60
57
61
58
.. _theming-support :
62
59
63
- ***************
64
60
Theming support
65
61
***************
66
62
@@ -117,7 +113,6 @@ belonging to a theme with a global CSS selector
117
113
not automatically added by ``ThemableXBlockMixin ``, so one needs to add
118
114
it manually.
119
115
120
- =========================
121
116
Using ThemableXBlockMixin
122
117
=========================
123
118
You can’t perform that action at this time.
0 commit comments