Skip to content

Commit

Permalink
#2639 expose _requireCompletionOf for course / contentObject / articl…
Browse files Browse the repository at this point in the history
…e / block to authoring tool (#2653)
  • Loading branch information
jamesrea83 authored Feb 19, 2020
1 parent 6e1c7e4 commit ae2f195
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/schema/article.model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@
"title": "Is this visible?",
"help": "Disabling this is equivalent to applying the CSS 'visibility:hidden' to the article."
},
"_requireCompletionOf": {
"type": "number",
"default": -1,
"isSetting": true,
"inputType": "Number",
"validators": ["number"],
"help": "The number of child models that must be completed to trigger this model's completion. Default -1 requires all child models to be completed."
},
"_ariaLevel": {
"type": "number",
"default": 0,
Expand Down
8 changes: 8 additions & 0 deletions src/core/schema/block.model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@
"title": "Is this visible?",
"help": "Disabling this is equivalent to applying the CSS 'visibility:hidden' to the block."
},
"_requireCompletionOf": {
"type": "number",
"default": -1,
"isSetting": true,
"inputType": "Number",
"validators": ["number"],
"help": "The number of child models that must be completed to trigger this model's completion. Default -1 requires all child models to be completed."
},
"_ariaLevel": {
"type": "number",
"default": 0,
Expand Down
8 changes: 8 additions & 0 deletions src/core/schema/contentobject.model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@
"title": "Is this visible?",
"help": "Equivalent to the CSS visibility property. Unless you have custom code that uses this, it is highly unlikely you would want to change this setting at a page level."
},
"_requireCompletionOf": {
"type": "number",
"default": -1,
"isSetting": true,
"inputType": "Number",
"validators": ["number"],
"help": "The number of child models that must be completed to trigger this model's completion. Default -1 requires all child models to be completed."
},
"_ariaLevel": {
"type": "number",
"default": 0,
Expand Down
8 changes: 8 additions & 0 deletions src/core/schema/course.model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,14 @@
"title": "Menu Classes",
"help": "Used to style or manipulate the look and feel of the top level Menu. These are predefined in the theme or added in Custom CSS/Less code."
},
"_requireCompletionOf": {
"type": "number",
"default": -1,
"isSetting": true,
"inputType": "Number",
"validators": ["number"],
"help": "The number of child models that must be completed to trigger this model's completion. Default -1 requires all child models to be completed."
},
"_isSelected": {
"type": "boolean",
"default": false,
Expand Down

0 comments on commit ae2f195

Please sign in to comment.