Commit d872ded2 by Sven Marnach

Add display name for nicer title in Studio.

parent 68a43594
...@@ -20,6 +20,12 @@ loader = ResourceLoader(__name__) # pylint: disable=invalid-name ...@@ -20,6 +20,12 @@ loader = ResourceLoader(__name__) # pylint: disable=invalid-name
class ActiveTableXBlock(StudioEditableXBlockMixin, XBlock): class ActiveTableXBlock(StudioEditableXBlockMixin, XBlock):
"""An XBlock with a tabular problem type that requires students to fill in some cells.""" """An XBlock with a tabular problem type that requires students to fill in some cells."""
display_name = String(
display_name='Display Name',
help='The title Studio uses for the component.',
scope=Scope.settings,
default='ActiveTable problem'
)
table_definition = String( table_definition = String(
display_name='Table definition', display_name='Table definition',
help='The definition of the table in Python-like syntax.', help='The definition of the table in Python-like syntax.',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment