Skip to content

A skeleton component to help developers create question components

License

Notifications You must be signed in to change notification settings

danielstorey/adapt-questionComponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adapt-questionComponent

A basic component skeleton to help developers create components. All components should have a readme that contains the following:

  • Title and Description
  • Installation
  • Usage
  • Settings overview
  • Limitations
  • Browser spec

Further details on developing components can be found on the wiki here: Developing-plugins.

Installation

Please describe the steps required to install your plug-in. You should also detail any dependencies that are not part of the package.json file.

Usage

Some details of how the plug-in might be used should be given here.

Settings overview

Each component should come with an example.json which contains an example of the data structure needed for this component to work. This enables developers to copy this over without the need for an editor.

Developers should give some description for data expected for their component and what the setting does. The example.json file for a basic component would contain at least the following:

{
    "_id":"c-05",
    "_parentId":"b-05",
    "_type":"component",
    "_component":"adapt-my-component",
    "_classes":"",
    "_layout":"left",
    "title":"My Component",
    "displayTitle":"My Component",
    "body":"",
    "instruction":""
}

A description of the core settings can be found at: Core model attributes

Data description

All attributes for your component should be described here. A description for core attributes can be found here: Core model attributes

Each component should also contain a properties.schema file. This is a JSON schema of example.json. This file is needed for the component to work with the authoring tool. It describes what fields are needed to edit the component.

Limitations

Please detail any limitation of your component.

Browser spec

If you have detailed browser spec you should detail them here.

About

A skeleton component to help developers create question components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published