Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contains QuestionSet Editor library components powered by angular. These components are designed to be used in the sunbirdEd portal and coKreat reference web portal to drive reusability, maintainability hence reducing the redundant development effort significantly.

...

Property

Default Value

Required

Description

mode

true

Defines the mode in editor is to be loaded loaded.

editableFields

{

sourcingreview: [], orgreview: [], review: [],

}

false

Defines which fields fields is to be enabled for reviewer when mode of questionset is sent for review.

review / sourcingReview / orgReview

enableQuestionCreation

true

false

It enables or disables the creation of question in questionset

assetConfig

false

Defines asset Config sets the max size limit for video and imagesimage and videos to be uploaded in questionset.

maxDepth

true

Defines the depth to which the questionset is to be created. If the depth is 1, hierarchy should have level1 described.

children

{ Question: [ 'Multiple Choice Question', 'Subjective Question' ] }

true

If maxdepth is 0 this children inside the root node defines the template of questions.

hierarchy

false

If maxdepth is > 0 then hierarchy should have definiton of the levels.

objectType

'QuestionSet'

true

Defines the object type

primaryCategory

'Practice Question Set'

true

Defines the primary category

isRoot

true

true

Defines the node is root node.

iconClass

'fa fa-book'

true

Defines the icon of root node

showAddCollaborator

false

false

This is to enable/disable the functionality of add collaborator in questionset. If it is true add collobrorator button will be enabled and created can add the collolaborator to collaborate in questionset.

questionSet. maxQuestionsLimit

false

It defines the limit of total number of question to be created inside questionset.

  • mode:

mode: edit (all the fields will be enable to edit for questionset creator)

...

mode: sourcingReview (all those fields will be enabled whatever will be present in editableFields.sourcingreview)

...

Note: In above case editableFields.sourcingreview: ['instructions'] so only instruction field is enabled for sourcing reviewer while reviewing the questionset.

  • editableFields:

...

Property

...

...

Required

...

Description

...

editableFields

...

{

sourcingreview: [], orgreview: [], review: [],

}

...

false

...

Defines which fields is to be enabled when mode of questionset is

review / sourcingReview / orgReview

Its object for different types of mode based on which some fields get enabled.

...

In sourcingreview, we have “instructions”, so when the mode of editor is sourcingReview in that case instruction will be only enabled.

...

  • enableQuestionCreation:

...

...

Default Value

...

Required

...

Description

...

enableQuestionCreation

...

true

...

true

...

allows or disallow creation of question in questionset.

When enableQuestionCreation: false “Create New” button gets disabled

...

  • assetConfig:

...

Property

...

Default Value

...

Required

...

Description

...

assetConfig

...

false

...

Code Block
assetConfig: {
    "image": {
        "size": "1",
        "sizeType": "MB",
        "accepted": "png, jpeg"
    },
    "video": {
        "size": "50",
        "sizeType": "MB",
        "accepted": "mp4, webm"
    }
}

...